Forum Replies Created

Viewing 15 posts - 136 through 150 (of 169 total)

  • RE: how to group using cases

    we tried different weight scenarios)

    this one didnt work on one.

    insert into #Person(PersonName, PersonHeight, PersonWeight, PersonBorn)

    values ('Loskov', 180, 150, '1988-01-19'),

    ('Sychev', 190, 150, '1966-05-15'),

    ('Evseev', 174, 150, '1974-12-29'),

    ('Maminov', 166, 150, '1981-09-05'),

    ('Orlov', 176, 150,...

  • RE: how to group using cases

    Bad news :crying:, it doesn’t work in every scenario. Neither of the queries. I tried changing the numbers and it only worked some times.

    It divides the total weight by lift...

  • RE: how to group using cases

    thanks so much!!!!!

    and thanks for the article, i will also read it.

    now people can ride safe on the elevator thanks to you 😎

  • RE: how to group using cases

    of course that works and i was nowhere close to the answer :w00t:

    but of course it worked πŸ˜€

    now the million dollar question... the way i did it, how do i...

  • RE: how to group using cases

    good morning, i would love to see your query, did you see mine?

    i was sweet enough to butcher people to fit in the elevator hahahahah

  • RE: how to group using cases

    Thanks for your reply but that is not it πŸ™‚

    i need to divide the people to fit in an elevator, and the total amount of weight on the elevator cannot...

  • RE: how to group using cases

    ok, so now i am after my coffee

    i found a temporary solution to the problem but i cuts people :w00t:

    keeping in mind that i am all about peace and...

  • RE: how to group using cases

    ok... it is official i am completely lost :w00t:

    but i haven't had my coffee yet, therefore after i get a dose of caffeine, i will get to it πŸ™‚

  • RE: how to group using cases

    well i know more than just a little πŸ™‚

    and i dont want the result, i just want to understand, my ego cannot take it if someone will solve it :-D:-D

    but...

  • RE: how to group using cases

    πŸ˜€ well i am looking into the bin thingy and doesnt look simple, there is a 6 page article with many many things :w00t:

    and i thought this problem was going...

  • RE: how to group using cases

    i never heard of the bin problem lol. but i will look into it πŸ˜€

    i am trying to learn sql and i got asked to look into that.

    thanks!

  • RE: how to group using cases

    lol,

    no no, that is not what i need

    i need to run a query that will take the people and group them, in groups

    each group cannot weight all together more...

  • RE: calculating period of time

    Chris, i did what i asked. your query added groups to the dates. from 1 to 8 group 1, from 9 to 16 group 2 and so on and so...

  • RE: calculating period of time

    ohhhhhhhhhhhhhhhhhhhh

    now i understand... i am slow but i will get there lol.

    so basically what i needed was the last two selects.

    on my defense i am a sql on the making.......

  • RE: calculating period of time

    yes i did, but i get confused, the "SELECT '2008-01-01 00:00:00.000', 3 UNION ALL" is not the one i need to add one by one manually?

    the query returns around...

Viewing 15 posts - 136 through 150 (of 169 total)