Click here to Skip to main content
15,895,142 members
Home / Discussions / Database
   

Database

 
General[Message Deleted] Pin
mostafa_h15-Sep-05 1:08
mostafa_h15-Sep-05 1:08 
GeneralRe: SOS!!! Pin
enjoycrack15-Sep-05 1:22
enjoycrack15-Sep-05 1:22 
GeneralRe: SOS!!! Pin
Christian Graus15-Sep-05 16:05
protectorChristian Graus15-Sep-05 16:05 
GeneralRe: SOS!!! Pin
enjoycrack15-Sep-05 16:46
enjoycrack15-Sep-05 16:46 
GeneralRe: SOS!!! Pin
mostafa_h16-Sep-05 3:00
mostafa_h16-Sep-05 3:00 
GeneralRe: SOS!!! Pin
enjoycrack16-Sep-05 3:08
enjoycrack16-Sep-05 3:08 
QuestionJoins Pin
Member 225251214-Sep-05 1:49
Member 225251214-Sep-05 1:49 
AnswerRe: Joins Pin
Frank Kerrigan14-Sep-05 2:09
Frank Kerrigan14-Sep-05 2:09 
SELECT TOP 100 t1.field1, t1.field2, t2.field2, t3,field3
from t1, t2
WHERE t1.field1 = t2.field2
ORDER BY t1.field1 DESC


The "SELECT top 100" is dependant on your ORDER BY. So you can order by "SALES DESC" and get the TOP 100 sales by customers.

another example: This will get top 100 customers by DESCending Year to Date sales.

SELECT TOP 100 Cust.CustID, Cust.Name, Sum(orders.order_value)
from orders, Cust
WHERE orders.CustID = Cust.CustID
AND YEAR(orders.date) = 2005
GROUP BY Cust.CustID, Cust.Name
ORDER BY Sum(orders.order_value) DESC






QuestionODBC m_strFilter error using .MDB Pin
Drew Doering13-Sep-05 21:30
Drew Doering13-Sep-05 21:30 
AnswerRe: ODBC m_strFilter error using .MDB Pin
Edbert P14-Sep-05 15:53
Edbert P14-Sep-05 15:53 
GeneralRe: ODBC m_strFilter error using .MDB Pin
Drew Doering14-Sep-05 21:50
Drew Doering14-Sep-05 21:50 
GeneralRe: ODBC m_strFilter error using .MDB Pin
Edbert P15-Sep-05 12:39
Edbert P15-Sep-05 12:39 
QuestionSQLXML component lets XML bulk loading... What about Oracle? Pin
Salil Khedkar13-Sep-05 19:30
Salil Khedkar13-Sep-05 19:30 
AnswerRe: SQLXML component lets XML bulk loading... What about Oracle? Pin
Al Ortega17-Sep-05 12:00
Al Ortega17-Sep-05 12:00 
QuestionCrystal Reports merge modules Pin
FireOnMoon13-Sep-05 2:48
FireOnMoon13-Sep-05 2:48 
AnswerRe: Crystal Reports merge modules Pin
Michael P Butler13-Sep-05 4:06
Michael P Butler13-Sep-05 4:06 
QuestionMaking an enterprise app database independent... Pin
Salil Khedkar12-Sep-05 22:29
Salil Khedkar12-Sep-05 22:29 
AnswerRe: Making an enterprise app database independent... Pin
Colin Angus Mackay12-Sep-05 22:57
Colin Angus Mackay12-Sep-05 22:57 
GeneralRe: Making an enterprise app database independent... Pin
Salil Khedkar15-Sep-05 4:04
Salil Khedkar15-Sep-05 4:04 
AnswerRe: Making an enterprise app database independent... Pin
rwestgraham13-Sep-05 9:13
rwestgraham13-Sep-05 9:13 
GeneralRe: Making an enterprise app database independent... Pin
Salil Khedkar15-Sep-05 4:03
Salil Khedkar15-Sep-05 4:03 
Questionshow duplicates client within 28 days Pin
Anonymous12-Sep-05 22:13
Anonymous12-Sep-05 22:13 
AnswerRe: show duplicates client within 28 days Pin
Frank Kerrigan13-Sep-05 3:00
Frank Kerrigan13-Sep-05 3:00 
QuestionManipulating the DataSet Index Pin
watagal12-Sep-05 13:16
watagal12-Sep-05 13:16 
AnswerRe: Manipulating the DataSet Index Pin
Frank Kerrigan13-Sep-05 3:05
Frank Kerrigan13-Sep-05 3:05 

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.