Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

SQL help :)

Thread Tools
 
Search this Thread
 
Old Jun 14, 2003 | 10:06 AM
  #1  
super_si's Avatar
super_si
Thread Starter
Scooby Regular
 
Joined: Feb 2002
Posts: 7,951
Likes: 0
From: Lurkin Somewhere
Post

I have 3 field

playerForename,playerSurname,cardtype.

I want to inpu the SQL so it groups together.

The players name, and a number of the yellows and red cards.

Unfortunatly my SQL knowledge is 0!!

Im using access for the queries but im not sure how complex i can make it.

i want the query to show

Player forename, Player surname, total reds, total yellow then i use GUI in VB to display.

Thanks

Si
Reply
Old Jun 14, 2003 | 11:09 AM
  #2  
DazV's Avatar
DazV
Scooby Regular
 
Joined: Jun 2000
Posts: 3,783
Likes: 0
Post

Why not just
forename, surname, total_yellow, total_red

Then select * and sort them on surname ?
Reply
Old Jun 14, 2003 | 01:53 PM
  #3  
bashful's Avatar
bashful
Scooby Regular
 
Joined: Aug 2002
Posts: 154
Likes: 0
Post

Super,

I'd suggest making two queries, one with F&S and reds, the other with F&S and yellows, then joining them on F&S. However, your database will blow a fuse if you have two different players with the same name - if I was your lecturer I'd tell you to look at your data structure.

Is ScoobyNet going to get partial credit for your degree?
Reply
Old Jun 14, 2003 | 04:30 PM
  #4  
super_si's Avatar
super_si
Thread Starter
Scooby Regular
 
Joined: Feb 2002
Posts: 7,951
Likes: 0
From: Lurkin Somewhere
Post

hehehehe

Cheers mate.

Instead worrying so much.

ive sat down, read my database book and ive learnt quite a bit.

making rapid progress quite impressed with my self.

Who knows how to write an install package
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
gregh
Computer & Technology Related
5
Apr 2, 2003 01:44 PM
MrDeference
Computer & Technology Related
3
Jan 30, 2003 10:56 PM
Jeff Wiltshire
Computer & Technology Related
2
Jan 25, 2003 09:53 PM
Andy Tang
Computer & Technology Related
2
Jan 22, 2003 09:54 PM
Puff The Magic Wagon!
Computer & Technology Related
3
Feb 2, 2002 04:04 PM




All times are GMT +1. The time now is 12:01 PM.