@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10



Comments:

<0> this is how i do it now
<1> if the quantity value is 20, what do you want to sum it with
<2> the pk isn't unique then
<1> you're not explaining what you want to sum
<0> if the sum >=x, i return those rows
<1> listen hansbrix
<1> YOU ARE NOT EXPLAINING WHAT YOU WISH TO SUM
<1> that's the only piece of information you lack
<0> i dont really want to sum
<0> the sum is the conditional
<1> then stop saying sum
<1> sum means add
<0> i want to get the rows
<2> I have PK=1,date=yesterday,quan=500 what am I summing?
<1> if you don't wish to add, don't say add
<1> ok?



<0> where the sum(qty) >= the threshold number
<0> the sum is the conditional
<1> listen hansbrix
<1> no
<1> sum is addition
<1> not a conditional
<1> you said you don't wish to add anything
<3> do you have learning disabilities hansbrix
<1> you can't sum something if you don't wish to add numbers together
<1> yes he does
<3> what do you mean by sum(qty)
<2> whats the output supposed to look like hans
<1> i asked him that 5 different ways
<1> he won't explain it quant
<1> he says he can't
<3> what does that number represent to you
<3> lol
<0> heh
<4> whores
<1> and if he can't explain it, I can't read his mind
<4> sum of whores
<4> at Quant's moms house
<2> this is homework
<0> this is not homework
<3> the guy got ADHD
<0> jesus
<1> ShrikeX that'd overflow bigint
<0> if you dont want to help dont
<3> shrike: sum of ****s in your rectum
<3> :)
<1> damn
<0> but is it really necessary to be a jerk, quant :)
<3> that's fill up the swap file
<1> hansbrix
<1> when you act so stupid yes it is
<1> because i've been patient and asked you to elaborate many many times
<0> and i'm trying to elaborate.
<1> in many ways, i've dumed it down as far as i can go
<1> no you aren't
<5> quant's always a jerk
<1> you avoid the question completely
<2> here I am trying to be nice and you'd rather trade insults with the ****fores
<1> guest be quiet
<0> ok, let me give an example
<0> please
<4> ****fores?
<3> since when am i always a jerk
<1> use the paste site hansbrix
<2> WHATS THE ****ING OUTPUT SUPPOSED TO LOKK LIKE
<0> i have 5 pk's, with 5 qty's, and 5 dates
<4> DOKKEN?
<1> uhm
<0> i want to return the list of pks where the sum of qty's in said pk's
<1> quant fix the topic with the paste site please
<0> is greater than 25
<0> does that make sense?
<3> i dont have link
<2> no
<1> no hansbrix
<1> when your pk is unique and you don't specify your grouping conditions there is nothing to sum
<0> link me to pastebin



<6> http://sql-servers.com/nopaste/
<2> it is a homework problem and we are not looking at your textbook
<0> ty
<3> maybe by sum quantity he means
<1> go get a dictionary and don't come back until you understand what that line means
<1> shutup guest
<3> just...quantity?
<0> dude, why do you think its a homework problem?
<0> cant a guy be thickheaded once in a while? :)
<1> ignore guest2
<2> indeed, if you listen to darken, please ignore me
<3> let me talk to this idiot 1 on 1
<1> quant he needs to understand what he is doing otherwise it is pointless
<3> i tihnk he means FK instead of PK
<0> i'll stop wasting time, i'm sorry, i'll make a simple pastebin example
<0> i apologize
<0> i'm not trying to be thick, i'm just having one of those days
<0> back in a few
<1> thanks
<2> heh
<1> link us to the paste when you're done
<5> wow seems like an angry conversations
<3> **** him
<3> let him figure it out
<2> he probably does mean FK instead of PK and we asked him like 10 times
<1> i'll give him another chance to explain himself
<5> heh i was just chiming in every now and then to slap people with a large trout :)
<3> it's impossible
<1> guest just shutup
<3> either he means FK
<3> or
<3> sum(qty) = qty
<1> guest is the only one stupid enough to distinct a column he groups
<1> when you say something that stupid you lose the ability to give help
<2> darken is still looking for that first real job
<2> ...and is superior only in his diction to try to make others seem stupid, thus he is SMART
<2> make it GO, darken...make it GO!
<3> i've installed a script on my client
<3> he msges me the p***swerd and he can kick through me
<3> i am like half bot half person
<2> heh
<0> http://sql-servers.com/nopaste/?show=511
<1> hansbrix you make as much sense as a canadian
<7> so this is FIFO?
<0> but i gave an example!
<2> hehehe
<7> you need a cursor for queries like this
<1> you're going to need to give exact details of what this is for hansbrix
<0> tenfour: thankyou.
<1> that example is ambigious
<7> what is the actual usage for this
<2> what you say is in the table seems to be your output as well
<0> tenfour: i've been doing it procedurally
<0> but its too slow, i want to speed it up, but i couldnt figure out how to do it relationally
<0> maybe its just impossible
<0> guest: its not output
<2> indeed, it's impossible
<0> the table is the table
<2> it's a list of PKs with thier quantites and dates
<0> yeah
<2> hehehe
<0> i simplified it
<1> hansbrix 1. stop saying sum()
<0> its all pertinent information
<1> if as tenfour said you want a continuous sum
<0> Darken|: but i want to know when the sum of the quantities exceeds a number
<1> of fifo
<3> oh
<3> cumulative
<1> that is different than what was stated
<5> hansbrix: how do you add them? why would you add pk2, 3 and 4 and not 1?
<5> why not add pk1 and pk2 ?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #sql
or
Go to some related logs:

pubstars video
#worldcup
#worldcup
#computers
#politics
#beginner
#unixhelp
#unixhelp
#visualbasic
suse 10.1 hard drive thrashes about



Home  |  disclaimer  |  contact  |  submit quotes