Click here to Skip to main content
15,896,278 members
Home / Discussions / Database
   

Database

 
GeneralRe: Unicode Support Pin
Colin Angus Mackay3-Jul-05 21:17
Colin Angus Mackay3-Jul-05 21:17 
GeneralRe: Unicode Support Pin
Mr. Naveed Butt3-Jul-05 22:05
professionalMr. Naveed Butt3-Jul-05 22:05 
GeneralRe: Unicode Support Pin
Colin Angus Mackay3-Jul-05 22:38
Colin Angus Mackay3-Jul-05 22:38 
GeneralRe: Unicode Support Pin
Mr. Naveed Butt3-Jul-05 23:37
professionalMr. Naveed Butt3-Jul-05 23:37 
GeneralMYSQL HAVING WITH INNER JOIN Pin
RajithCAlwis3-Jul-05 20:32
RajithCAlwis3-Jul-05 20:32 
Questionis it an average or NOT? Pin
WetRivrRat3-Jul-05 13:06
WetRivrRat3-Jul-05 13:06 
AnswerRe: is it an average or NOT? Pin
Colin Angus Mackay3-Jul-05 20:40
Colin Angus Mackay3-Jul-05 20:40 
GeneralRe: is it an average or NOT? Pin
WetRivrRat4-Jul-05 5:25
WetRivrRat4-Jul-05 5:25 
Sorry it didn't make sense, I read back over it and you're right, sorry.

ok, so lets try this again. I am trying to create a dropdownlist that is databound to sql db, the shift_number(which stays the same until closed out) is recorded everytime a user creates a transaction, and so there are always more than one record of the same shift_number in the database.

For example, if a machine is operating on shift 1, every time the transaction occurs, it registers a 1. So, if I have 19 transactions that occurred,then I am shown 19 1's in a row in the dropdown box. (1,1,1,1, etc. 19 times) However, all I need to see shown in the actual dropdown box is 1 instance of number one. All I really need to access is the shift number, and not the number of transactions. The problem is when I attempt to do so, I am given every instance on that shift that a transaction occurred. How do I query the db to do this? what query that would take each instance of the same number and average them so I am only left with that one number in my drop down box and not 19 of the same number?

basicaly i parse the db to find the shift_number i'm looking for then sum the tranaction_amount to create the total shift_value.

so i may have 23 instances(transactions) of shift_number 16, 5 instances of shift 15, 19 instances of shift 1, etc, etc.(depending on the number of transactions that week) which when I pull the data from the db it will return with 23 different options for shift_number 16 and 5 options for 15, etc,etc,

I only need to see the single <option> for shift 16, a single <option> for 15, etc,etc. so my question really boils down to this, (i think) i need a query or a method to take each shift number visible in the db and display only one value of each in the dropdownlist that will then upon selection allow me to sort by machine_id and shift_number...

what i was saying about the varible week number was that these shifts are only good for a week, the shift gets closed out once a week,(not allways on the same day, but at least once a week) and I need to be able to see the total number of shifts that have closed up to today(when ever today may be)and not have to look at multiple instances of the same shift.

Dim Beautiful As String
Beautiful = "ignorant"
Label1.Text = "The world is full of " & Beautiful & " people."


Why is common sense such an un-common comodity?
GeneralRe: is it an average or NOT? Pin
Colin Angus Mackay4-Jul-05 5:31
Colin Angus Mackay4-Jul-05 5:31 
GeneralRe: is it an average or NOT? Pin
WetRivrRat4-Jul-05 6:24
WetRivrRat4-Jul-05 6:24 
GeneralRe: is it an average or NOT? Pin
Colin Angus Mackay4-Jul-05 6:55
Colin Angus Mackay4-Jul-05 6:55 
Questionhow to read the header row in excel file? Pin
qqworm2-Jul-05 22:31
qqworm2-Jul-05 22:31 
GeneralI can not login to SQL server 2000 in case... Pin
dhtuan2-Jul-05 17:04
dhtuan2-Jul-05 17:04 
GeneralRe: I can not login to SQL server 2000 in case... Pin
RajithCAlwis3-Jul-05 20:36
RajithCAlwis3-Jul-05 20:36 
GeneralMicrosoft Access password Pin
sasan562-Jul-05 11:01
sasan562-Jul-05 11:01 
GeneralRe: Microsoft Access password Pin
RajithCAlwis3-Jul-05 20:34
RajithCAlwis3-Jul-05 20:34 
QuestionHow to avoid double Rows Pin
gharryh2-Jul-05 10:39
gharryh2-Jul-05 10:39 
AnswerRe: How to avoid double Rows Pin
toxcct3-Jul-05 20:37
toxcct3-Jul-05 20:37 
GeneralRe: How to avoid double Rows Pin
gharryh4-Jul-05 2:56
gharryh4-Jul-05 2:56 
GeneralRe: How to avoid double Rows Pin
gharryh4-Jul-05 5:01
gharryh4-Jul-05 5:01 
GeneralPuzzles me how to check a columns value Pin
gharryh1-Jul-05 10:49
gharryh1-Jul-05 10:49 
GeneralRe: Puzzles me how to check a columns value Pin
Christian Graus1-Jul-05 20:25
protectorChristian Graus1-Jul-05 20:25 
GeneralRe: Puzzles me how to check a columns value Pin
gharryh1-Jul-05 21:31
gharryh1-Jul-05 21:31 
GeneralRe: Puzzles me how to check a columns value Pin
Christian Graus1-Jul-05 21:58
protectorChristian Graus1-Jul-05 21:58 
GeneralRe: Puzzles me how to check a columns value Pin
gharryh1-Jul-05 23:34
gharryh1-Jul-05 23:34 

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.