Click here to Skip to main content
15,899,124 members
Home / Discussions / Database
   

Database

 
QuestionPass wild card value to Where Like Statement. Pin
japel5-Oct-06 0:36
japel5-Oct-06 0:36 
AnswerRe: Pass wild card value to Where Like Statement. Pin
albCode5-Oct-06 0:41
albCode5-Oct-06 0:41 
GeneralRe: Pass wild card value to Where Like Statement. Pin
japel5-Oct-06 1:06
japel5-Oct-06 1:06 
AnswerRe: Pass wild card value to Where Like Statement. Pin
Chris Meech5-Oct-06 2:06
Chris Meech5-Oct-06 2:06 
QuestionSQL server connectivity Problem: Pin
Shahzad.Aslam4-Oct-06 23:30
Shahzad.Aslam4-Oct-06 23:30 
AnswerRe: SQL server connectivity Problem: Pin
Jerry Hammond5-Oct-06 2:35
Jerry Hammond5-Oct-06 2:35 
AnswerRe: SQL server connectivity Problem: Pin
Mike Osbahr6-Oct-06 10:51
Mike Osbahr6-Oct-06 10:51 
GeneralRe: SQL server connectivity Problem: Pin
Shahzad.Aslam8-Oct-06 18:28
Shahzad.Aslam8-Oct-06 18:28 
QuestionTable change event Pin
RoyRose784-Oct-06 23:27
RoyRose784-Oct-06 23:27 
AnswerRe: Table change event Pin
Chris Buckett5-Oct-06 8:55
Chris Buckett5-Oct-06 8:55 
QuestionReg. Query Pin
aaraaayen4-Oct-06 21:17
aaraaayen4-Oct-06 21:17 
AnswerRe: Reg. Query Pin
Eric Dahlvang5-Oct-06 6:02
Eric Dahlvang5-Oct-06 6:02 
Questionlist boxes and databases Pin
ranro20064-Oct-06 19:22
ranro20064-Oct-06 19:22 
AnswerRe: list boxes and databases Pin
albCode4-Oct-06 21:15
albCode4-Oct-06 21:15 
Questionneed code sample Pin
jqt4-Oct-06 19:17
jqt4-Oct-06 19:17 
AnswerRe: need code sample Pin
japel5-Oct-06 0:44
japel5-Oct-06 0:44 
Questionselect with TOP and COUNT Pin
CandyMe4-Oct-06 17:26
CandyMe4-Oct-06 17:26 
AnswerRe: select with TOP and COUNT Pin
albCode4-Oct-06 21:06
albCode4-Oct-06 21:06 
GeneralRe: select with TOP and COUNT Pin
CandyMe4-Oct-06 22:05
CandyMe4-Oct-06 22:05 
GeneralRe: select with TOP and COUNT Pin
albCode4-Oct-06 22:08
albCode4-Oct-06 22:08 
AnswerRe: select with TOP and COUNT Pin
Eric Dahlvang5-Oct-06 5:22
Eric Dahlvang5-Oct-06 5:22 
GeneralRe: select with TOP and COUNT Pin
CandyMe5-Oct-06 18:00
CandyMe5-Oct-06 18:00 
I mean my query doesn't produce the result I'm expecting.

For instance, I selected Top 5 with a given condition. But 3000 passed this condition. Rowcount should only be 5.

Upon querying such
Select top 5 LastName, <br />
(Select count (*) from TBL where lastname = 'Cruz') as Count <br />
from TBL where lastname = 'Cruz'


it gives me: the top 5. but doesn't give me the correct count: 5
LastName | Count
Cruz | 3000
Cruz | 3000
Cruz | 3000
Cruz | 3000
Cruz | 3000

Thank u.

Gerri

GeneralRe: select with TOP and COUNT Pin
CandyMe5-Oct-06 19:41
CandyMe5-Oct-06 19:41 
AnswerRe: select with TOP and COUNT Pin
templarx5-Oct-06 22:08
templarx5-Oct-06 22:08 
GeneralRe: select with TOP and COUNT Pin
CandyMe7-Oct-06 2:17
CandyMe7-Oct-06 2:17 

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.