Click here to Skip to main content
15,888,968 members
Home / Discussions / Database
   

Database

 
GeneralRe: Functions in SQL Server...... [modified] Pin
Smart_Boy14-Mar-07 20:39
Smart_Boy14-Mar-07 20:39 
GeneralRe: Functions in SQL Server...... Pin
Colin Angus Mackay14-Mar-07 22:55
Colin Angus Mackay14-Mar-07 22:55 
GeneralRe: Functions in SQL Server...... Pin
Smart_Boy15-Mar-07 0:25
Smart_Boy15-Mar-07 0:25 
GeneralRe: Functions in SQL Server...... Pin
Colin Angus Mackay15-Mar-07 7:39
Colin Angus Mackay15-Mar-07 7:39 
GeneralRe: Functions in SQL Server...... Pin
Smart_Boy15-Mar-07 20:19
Smart_Boy15-Mar-07 20:19 
GeneralRe: Functions in SQL Server...... Pin
Colin Angus Mackay15-Mar-07 23:21
Colin Angus Mackay15-Mar-07 23:21 
GeneralRe: Functions in SQL Server...... Pin
Smart_Boy15-Mar-07 23:37
Smart_Boy15-Mar-07 23:37 
GeneralRe: Functions in SQL Server...... Pin
Colin Angus Mackay16-Mar-07 1:21
Colin Angus Mackay16-Mar-07 1:21 
Smart_Boy wrote:
I didnt got ur First Point....


You want the data to be inserted in a specific order. You cannot. The table contains no order. Any perceived order is an illusion created by the specific implementation of the database.

If you attempt to add an order by class to an INSERT statement it will come back with an error. The order data is inserted is not necessarily the order in which it is stored. The order in which the data is stored may change. It is outwith your control.

If you want the data to be retrieved in a specific order then you have add some markers to the table so that it can be done.

e.g.

The table contains the columns:
Menu, SubMenu, Detail, Combined

The first three columns can be used in an ORDER BY clause. The last column is used in the SELECT's column list

SELECT Combined
FROM MyTable
ORDER BY Menu, SubMenu, Detail


The INSERT statements would need to be altered to add the additional data to your table, with nulls in place where there is no relevant information.


GeneralRe: Functions in SQL Server...... Pin
Smart_Boy16-Mar-07 18:37
Smart_Boy16-Mar-07 18:37 
GeneralSQL Server 2000 and 2005 [moved] Pin
Richard Andrew x6413-Mar-07 10:51
professionalRichard Andrew x6413-Mar-07 10:51 
GeneralRe: SQL Server 2000 and 2005 Pin
MoustafaS13-Mar-07 10:58
MoustafaS13-Mar-07 10:58 
GeneralRe: SQL Server 2000 and 2005 Pin
Richard Andrew x6413-Mar-07 11:00
professionalRichard Andrew x6413-Mar-07 11:00 
AnswerRe: SQL Server 2000 and 2005 [moved] Pin
Bad Programmer13-Mar-07 15:02
Bad Programmer13-Mar-07 15:02 
GeneralRe: SQL Server 2000 and 2005 [moved] Pin
kaliem13-Mar-07 21:35
kaliem13-Mar-07 21:35 
GeneralRe: SQL Server 2000 and 2005 [moved] Pin
Keshav V. Kamat13-Mar-07 22:53
Keshav V. Kamat13-Mar-07 22:53 
QuestionConnection string problem Pin
Saira Tanwir13-Mar-07 9:11
Saira Tanwir13-Mar-07 9:11 
AnswerRe: Connection string problem Pin
Marcus J. Smith13-Mar-07 10:07
professionalMarcus J. Smith13-Mar-07 10:07 
AnswerRe: Connection string problem Pin
Saira Tanwir13-Mar-07 11:16
Saira Tanwir13-Mar-07 11:16 
Questionhelp me about this query Pin
sepel13-Mar-07 5:43
sepel13-Mar-07 5:43 
AnswerRe: help me about this query Pin
Marcus J. Smith13-Mar-07 5:52
professionalMarcus J. Smith13-Mar-07 5:52 
GeneralRe: help me about this query Pin
sepel13-Mar-07 5:57
sepel13-Mar-07 5:57 
QuestionDatabase Schema - multiple apps/single table? Pin
ehelinProgrammer13-Mar-07 5:19
ehelinProgrammer13-Mar-07 5:19 
AnswerRe: Database Schema - multiple apps/single table? Pin
Marcus J. Smith13-Mar-07 5:54
professionalMarcus J. Smith13-Mar-07 5:54 
GeneralRe: Database Schema - multiple apps/single table? Pin
ehelinProgrammer13-Mar-07 5:58
ehelinProgrammer13-Mar-07 5:58 
GeneralRe: Database Schema - multiple apps/single table? Pin
ehelinProgrammer13-Mar-07 7:57
ehelinProgrammer13-Mar-07 7:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.