Login
Sign Up For Free
English
中文 (繁體)
中文 (香港)
中文 (简体)
日本語
Filipino
Bahasa Indonesia
Bahasa Melayu
Pусский
Português (Brasil)
Magyar
Français
Español
Deutsch
Čeština
العربية
Català
Dansk
Ελληνικά
فارسی
Suomi
Gaeilge
Hindi
עברית
Hrvatski
Italiano
Norsk bokmål
Nederlands
한국어
Polski
Română
Slovenský
Svenska
Türkçe
українська
беларуская
ไทย
Standard view
TooLongDintRead
1 years ago
[LARP DB] Okay, I want:
select * from
"ItemSheet" is2
join
(select count(id), guid, ma
createdate)
from "ItemSheet" is2
group by guid) as A
on A.guid =is2.guid
Can you do that?
C#: Fuck you!
latest #13
Dancin` Vic
1 years ago
Well, yeah, I don't think emojis are natively supported by C# yet.
Furikuchan
1 years ago
rofl
Furikuchan
1 years ago
squints
Wait, a select count and a group by stacked like that usually works?
立即下載
TooLongDintRead
1 years ago
Yes totally does so long as all of the non-agregate columns are in the group by.
TooLongDintRead
1 years ago
What I'm saying is the base SQL I write in 7 lines without a sweat.
.... Now translate that into C#/Linq.
Furikuchan
1 years ago
Oh no no, I do get what you're saying, but now I'm feeling silly
TooLongDintRead
1 years ago
All good
Furikuchan
1 years ago
So, I work primarily in SAS, which uses proc sql statements, which are
just different enough
from base SQL that I can't always just copy/paste my SQL code between a 'proc sql' and 'quit'
Furikuchan
1 years ago
So now I'm like, "wait, can I actually get both of those to play nice in one statement?"
TooLongDintRead
1 years ago
::thumbsup::
Battler
1 years ago
This is one of the reasons why I sometimes like ORMs, since I don't have to write that SQL.
TooLongDintRead
1 years ago
kbrighton
: and yet this is the exact OPPOSITE problem for me.
Battler
1 years ago
I mean, understandable.
back to top
delete
reply
edit
cancel
cancel