Jump to content

Need Suggestion on building database


Recommended Posts

I'm building a database to store inventories into sql. The sql part is done already; just the way of building the interface and coding with autoit that I need to finish. I would like suggestions on which method is easier for this project.

The project includes

AssetTag | Model # | Serial # | Location | Department | Floor | Room

 

Is it easier to store Model#, Location, Department, and floor into a ini file for combo box usage? The reason I rather not hard code it to the autoit project is because I will need to add new info on those listed later as new equipments will be bought to replace or there will be a department upgrade, etc...

 

If you have a better way; an example would be appreciated.

Msgbox(0, "Hate", "Just hate it when I post a question and find my own answer after a couple tries. But if I don't post the question, I can't seem to resolve it at all.")
Link to comment
Share on other sites

What is the database schema?

And no, a database never needs accompanying .INI files (nor other formats), that would totally compromize data integrity and jeopardize concurrent accesses!

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

I set it up as

Table = Inventory
Columns as
AssetTag | Model # | Serial # | Location | Department | Floor | Room

 

Just one table since it's a simple database.

Msgbox(0, "Hate", "Just hate it when I post a question and find my own answer after a couple tries. But if I don't post the question, I can't seem to resolve it at all.")
Link to comment
Share on other sites

OK but what is the actual SQL schema? In other words, which SQL statement(s) di you use to create the table, and to insert/update rows in it?

Are Location | Department | Floor | Room text columns? If yes how will you manage things when a location, department, ... needs to have its name changed?

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

Asianqueen, jchd is looking for something like this.  Which database are you using, and what is the SQL CREATE command used?

; ............................... create table players
    $query = "CREATE TABLE if not exists players ( " _
            & "PlayerNum integer unique not null, " _
            & "PlayerName, " _
            & "PlayerInit,  " _
            & "ScoreCountback, " _
            & "ScoreFinal  " _
            & ");"

 

Skysnake

Why is the snake in the sky?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...