Lost Password?


Go Back   CodeCall Programming Forum > Web Development Forum > Database & Database Programming

Database & Database Programming MySQL, Oracle, SQL, PL/SQL, ABAP, Smart Forms, and other databases and languages. A database is an organized body of related information used in many websites (including CC).

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-25-2007, 04:26 PM
Richmord Richmord is offline
Newbie
 
Join Date: Jun 2007
Posts: 3
Rep Power: 0
Richmord is on a distinguished road
Default SQL Table

Hi,

I'm creating an application that has SQL database linked to it. This is my first app that uses SQL. So a bit confused about the table structure. It goes like this.

No. | Name | Phase | Start Date | End Date | Hrs | Completed

But one No.has 7 phases. So how do I go about creating the table? Please help!

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 06-25-2007, 05:52 PM
NeedHelp NeedHelp is offline
Programming God
 
Join Date: May 2006
Posts: 527
Rep Power: 13
NeedHelp is on a distinguished road
Default

What do you mean by phases?
Also, you should have a unique number that identifies each row like "id" or something. If you have more than one No. then you will need to make another table for the No and make a relational database.
__________________
I Need Help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-26-2007, 10:08 AM
Sergey.Net Sergey.Net is offline
Newbie
 
Join Date: Jun 2007
Posts: 8
Rep Power: 0
Sergey.Net is on a distinguished road
Default

First table
Id | No | Name
Second table
Id | FirstTable_ID | Phase | Start Date | End Date | Hrs | Completed

And when you want to make a selection from these tables query will be

SELECT * FROM FrrstTable ft
INNER JOIN SecondTable st ON st.FirstTable_ID = ft.ID
__________________
http://www.hire-programmers.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ODBC API - Special Table and Column Names Tronman Database & Database Programming 0 07-30-2007 01:52 PM
Best program for SQL database manipulation Rhadamanthys Database & Database Programming 3 07-02-2007 03:32 PM
getting the value of checkboxes to delete the records in the sql table pavsuri ASP, ASP.NET and Coldfusion 1 05-07-2007 03:10 PM
Oracle has more Flaws than MS SQL? Jordan Database & Database Programming 9 12-05-2006 10:39 AM
Working with TADO Table MrDiaz Pascal/Delphi 0 07-03-2006 07:28 PM


All times are GMT -5. The time now is 11:21 AM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 97%

Ads