Click here to Skip to main content
15,900,907 members
Home / Discussions / Database
   

Database

 
AnswerRe: How can i select more records Pin
RChin11-Apr-05 3:38
RChin11-Apr-05 3:38 
GeneralRe: How can i select more records Pin
Colin Angus Mackay11-Apr-05 4:56
Colin Angus Mackay11-Apr-05 4:56 
AnswerRe: How can i select more records Pin
Colin Angus Mackay11-Apr-05 4:54
Colin Angus Mackay11-Apr-05 4:54 
GeneralHelp Needed Pin
Anonymous11-Apr-05 2:31
Anonymous11-Apr-05 2:31 
GeneralRe: Help Needed Pin
Colin Angus Mackay11-Apr-05 3:12
Colin Angus Mackay11-Apr-05 3:12 
QuestionBest way to use criteria in SQL statements? Pin
WindSailor11-Apr-05 0:46
WindSailor11-Apr-05 0:46 
AnswerRe: Best way to use criteria in SQL statements? Pin
Colin Angus Mackay11-Apr-05 3:11
Colin Angus Mackay11-Apr-05 3:11 
GeneralRe: Best way to use criteria in SQL statements? Pin
WindSailor11-Apr-05 8:41
WindSailor11-Apr-05 8:41 
Lets say Table1 has:

ID, Num1, Num2, Num3, FullName, ItemName, ItemColor, ItemValue, ItemWeight

Table2 has:

ID, Ber1, Ber2, Ber3

To sort Table1 generically I would use:

SELECT ID, Num1, Num2, Num3, FullName, ItemName, ItemColor, ItemValue, ItemWeight FROM Table1 WHERE ItemValue>100 ORDER BY Num1, Num2, Num3, ItemWeight

I would like to use Table2’s values from columns Ber1, Ber2, and Ber3 as criteria to sort by for Table1’s Num1, Num2, and Num3’s values.

Just the values from a single row for now would be helpful (Columns Ber1, Ber2, and Ber3).
This is used for configuring the Adapter for the connection.

By the way, the two tables aren't related.
The columns (Num1, Num2, Num3 and Ber1, Ber2, Ber3) do have the same Look-Up Tables. I just have Table2 as a criteria to sort Table1 by.

Looking into JOINS.

Thanks

GeneralRe: Best way to use criteria in SQL statements? Pin
WindSailor11-Apr-05 21:32
WindSailor11-Apr-05 21:32 
GeneralCOALESCE(NULLIF(@intError, 0), @@ERROR) Pin
_J_10-Apr-05 23:03
_J_10-Apr-05 23:03 
Generalquestion regarding to SQL SERVER Pin
eshban28410-Apr-05 19:29
eshban28410-Apr-05 19:29 
GeneralRe: question regarding to SQL SERVER Pin
Colin Angus Mackay10-Apr-05 19:59
Colin Angus Mackay10-Apr-05 19:59 
GeneralRe: question regarding to SQL SERVER Pin
si_6911-Apr-05 11:20
si_6911-Apr-05 11:20 
GeneralRe: question regarding to SQL SERVER Pin
Colin Angus Mackay11-Apr-05 12:09
Colin Angus Mackay11-Apr-05 12:09 
GeneralRe: question regarding to SQL SERVER Pin
si_6911-Apr-05 22:09
si_6911-Apr-05 22:09 
GeneralSql Stored procedure Pin
Mahesh167910-Apr-05 18:32
Mahesh167910-Apr-05 18:32 
GeneralRe: Sql Stored procedure Pin
Colin Angus Mackay10-Apr-05 20:53
Colin Angus Mackay10-Apr-05 20:53 
GeneralRe: Sql Stored procedure Pin
turbochimp11-Apr-05 10:24
turbochimp11-Apr-05 10:24 
QuestionExecuteReader in Business layer? Pin
IlanTal9-Apr-05 23:02
IlanTal9-Apr-05 23:02 
AnswerRe: ExecuteReader in Business layer? Pin
Mike Dimmick10-Apr-05 9:25
Mike Dimmick10-Apr-05 9:25 
GeneralRe: ExecuteReader in Business layer? Pin
IlanTal10-Apr-05 19:30
IlanTal10-Apr-05 19:30 
GeneralSQL Server: Views over Select Statements Pin
matthias s.9-Apr-05 10:29
matthias s.9-Apr-05 10:29 
GeneralRe: SQL Server: Views over Select Statements Pin
Colin Angus Mackay9-Apr-05 16:36
Colin Angus Mackay9-Apr-05 16:36 
GeneralRe: SQL Server: Views over Select Statements Pin
matthias s.9-Apr-05 23:45
matthias s.9-Apr-05 23:45 
GeneralRe: SQL Server: Views over Select Statements Pin
Colin Angus Mackay10-Apr-05 0:29
Colin Angus Mackay10-Apr-05 0:29 

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.