CigarBanter

Advanced search  
Pages: 1 ... 16 17 [18] 19 20 21

Author Topic: 9/25/2015  (Read 43352 times)

razgueado

  • Founding Member
  • Esteemed Status
  • *****
  • Posts: 18582
  • KG7OCA
Re: 9/25/2015
« Reply #255 on: September 25, 2015, 04:51:51 PM »

It took a day-and-a-half of banging my head on the desk, but I figured out how to write this damned query. Sheesh.
SQL?
Yeah. Had to select which of one or more children of a particular guardian has the birthdate closest to the guardian's enroll date.
Definitely not my forte.  I was dealing with a proxy server issue.  Gee, I hate Windows.
Would have been easy in a properly normalized database, or if I could just write some C# code. As it was, this was all coming from one query, and my query had to replace another query and have the same fields but return the index child correctly. So, required a self-join to an aggregate query, and one of the join conditions had to be the return value of an aggregate function. Total fuster-cluck. But I did it.
F'n index children, amiright?
F'n A right.
Logged

razgueado

  • Founding Member
  • Esteemed Status
  • *****
  • Posts: 18582
  • KG7OCA
Re: 9/25/2015
« Reply #256 on: September 25, 2015, 04:53:46 PM »

It took a day-and-a-half of banging my head on the desk, but I figured out how to write this damned query. Sheesh.
SQL?
Yeah. Had to select which of one or more children of a particular guardian has the birthdate closest to the guardian's enroll date.
Definitely not my forte.  I was dealing with a proxy server issue.  Gee, I hate Windows.
Would have been easy in a properly normalized database, or if I could just write some C# code. As it was, this was all coming from one query, and my query had to replace another query and have the same fields but return the index child correctly. So, required a self-join to an aggregate query, and one of the join conditions had to be the return value of an aggregate function. Total fuster-cluck. But I did it.
F'n index children, amiright?
And it's worth pointing out, for Tex's sake, that this is all a bunch of welfare data.  Pure communist database.
Logged

Travellin Dave

  • Fanatical Member
  • Post Whore Extraordinaire
  • *****
  • Posts: 77902
  • Remember
    • My Top Cigars of 2021
Re: 9/25/2015
« Reply #257 on: September 25, 2015, 04:54:06 PM »

It took a day-and-a-half of banging my head on the desk, but I figured out how to write this damned query. Sheesh.
SQL?
Yeah. Had to select which of one or more children of a particular guardian has the birthdate closest to the guardian's enroll date.
Definitely not my forte.  I was dealing with a proxy server issue.  Gee, I hate Windows.
Would have been easy in a properly normalized database, or if I could just write some C# code. As it was, this was all coming from one query, and my query had to replace another query and have the same fields but return the index child correctly. So, required a self-join to an aggregate query, and one of the join conditions had to be the return value of an aggregate function. Total fuster-cluck. But I did it.
Should we just not an act like we have a fukkin' clue what the hell he's talking about?
Logged

Travellin Dave

  • Fanatical Member
  • Post Whore Extraordinaire
  • *****
  • Posts: 77902
  • Remember
    • My Top Cigars of 2021
Re: 9/25/2015
« Reply #258 on: September 25, 2015, 04:54:55 PM »

It took a day-and-a-half of banging my head on the desk, but I figured out how to write this damned query. Sheesh.
SQL?
Yeah. Had to select which of one or more children of a particular guardian has the birthdate closest to the guardian's enroll date.
Definitely not my forte.  I was dealing with a proxy server issue.  Gee, I hate Windows.
Would have been easy in a properly normalized database, or if I could just write some C# code. As it was, this was all coming from one query, and my query had to replace another query and have the same fields but return the index child correctly. So, required a self-join to an aggregate query, and one of the join conditions had to be the return value of an aggregate function. Total fuster-cluck. But I did it.
F'n index children, amiright?
And it's worth pointing out, for Tex's sake, that this is all a bunch of welfare data.  Pure communist database.
That part we could have guessed.
Logged

A Friend of Charlie

  • Founding Member
  • Post Whore Extraordinaire
  • *****
  • Posts: 66721
  • Proud to be a BotL
    • CigarBanter
Re: 9/25/2015
« Reply #259 on: September 25, 2015, 04:58:56 PM »

It took a day-and-a-half of banging my head on the desk, but I figured out how to write this damned query. Sheesh.
SQL?
Yeah. Had to select which of one or more children of a particular guardian has the birthdate closest to the guardian's enroll date.
Definitely not my forte.  I was dealing with a proxy server issue.  Gee, I hate Windows.
Would have been easy in a properly normalized database, or if I could just write some C# code. As it was, this was all coming from one query, and my query had to replace another query and have the same fields but return the index child correctly. So, required a self-join to an aggregate query, and one of the join conditions had to be the return value of an aggregate function. Total fuster-cluck. But I did it.
F'n index children, amiright?
LMFAO!  Thanks, Mark.
Logged

Threebean

  • Guest
Re: 9/25/2015
« Reply #260 on: September 25, 2015, 04:59:40 PM »

It took a day-and-a-half of banging my head on the desk, but I figured out how to write this damned query. Sheesh.
SQL?
Yeah. Had to select which of one or more children of a particular guardian has the birthdate closest to the guardian's enroll date.
Definitely not my forte.  I was dealing with a proxy server issue.  Gee, I hate Windows.
Would have been easy in a properly normalized database, or if I could just write some C# code. As it was, this was all coming from one query, and my query had to replace another query and have the same fields but return the index child correctly. So, required a self-join to an aggregate query, and one of the join conditions had to be the return value of an aggregate function. Total fuster-cluck. But I did it.
Should we just not an act like we have a fukkin' clue what the hell he's talking about?
What do you mean, I got it.  Well, the fuster-cluck part, anyway.
Logged

A Friend of Charlie

  • Founding Member
  • Post Whore Extraordinaire
  • *****
  • Posts: 66721
  • Proud to be a BotL
    • CigarBanter
Re: 9/25/2015
« Reply #261 on: September 25, 2015, 04:59:54 PM »

It took a day-and-a-half of banging my head on the desk, but I figured out how to write this damned query. Sheesh.
SQL?
Yeah. Had to select which of one or more children of a particular guardian has the birthdate closest to the guardian's enroll date.
Definitely not my forte.  I was dealing with a proxy server issue.  Gee, I hate Windows.
Would have been easy in a properly normalized database, or if I could just write some C# code. As it was, this was all coming from one query, and my query had to replace another query and have the same fields but return the index child correctly. So, required a self-join to an aggregate query, and one of the join conditions had to be the return value of an aggregate function. Total fuster-cluck. But I did it.
F'n index children, amiright?
And it's worth pointing out, for Tex's sake, that this is all a bunch of welfare data.  Pure communist database.
What happens if they don't have a child?
Logged

A Friend of Charlie

  • Founding Member
  • Post Whore Extraordinaire
  • *****
  • Posts: 66721
  • Proud to be a BotL
    • CigarBanter
Re: 9/25/2015
« Reply #262 on: September 25, 2015, 05:02:00 PM »

It took a day-and-a-half of banging my head on the desk, but I figured out how to write this damned query. Sheesh.
SQL?
Yeah. Had to select which of one or more children of a particular guardian has the birthdate closest to the guardian's enroll date.
Definitely not my forte.  I was dealing with a proxy server issue.  Gee, I hate Windows.
Would have been easy in a properly normalized database, or if I could just write some C# code. As it was, this was all coming from one query, and my query had to replace another query and have the same fields but return the index child correctly. So, required a self-join to an aggregate query, and one of the join conditions had to be the return value of an aggregate function. Total fuster-cluck. But I did it.
Should we just not an act like we have a fukkin' clue what the hell he's talking about?
I knew exactly what he was talking about but wouldn't have the first clue as how to solve the problem.  The correct response is, "good job Raz".
Logged

razgueado

  • Founding Member
  • Esteemed Status
  • *****
  • Posts: 18582
  • KG7OCA
Re: 9/25/2015
« Reply #263 on: September 25, 2015, 05:02:00 PM »

It took a day-and-a-half of banging my head on the desk, but I figured out how to write this damned query. Sheesh.
SQL?
Yeah. Had to select which of one or more children of a particular guardian has the birthdate closest to the guardian's enroll date.
Definitely not my forte.  I was dealing with a proxy server issue.  Gee, I hate Windows.
Would have been easy in a properly normalized database, or if I could just write some C# code. As it was, this was all coming from one query, and my query had to replace another query and have the same fields but return the index child correctly. So, required a self-join to an aggregate query, and one of the join conditions had to be the return value of an aggregate function. Total fuster-cluck. But I did it.
F'n index children, amiright?
And it's worth pointing out, for Tex's sake, that this is all a bunch of welfare data.  Pure communist database.
What happens if they don't have a child?
Well, since this is a database of information about mothers, infants, and early childhood home visits, not having a child is not a business case I have to deal with.
Logged

Threebean

  • Guest
Re: 9/25/2015
« Reply #264 on: September 25, 2015, 05:03:22 PM »

It took a day-and-a-half of banging my head on the desk, but I figured out how to write this damned query. Sheesh.
SQL?
Yeah. Had to select which of one or more children of a particular guardian has the birthdate closest to the guardian's enroll date.
Definitely not my forte.  I was dealing with a proxy server issue.  Gee, I hate Windows.
Would have been easy in a properly normalized database, or if I could just write some C# code. As it was, this was all coming from one query, and my query had to replace another query and have the same fields but return the index child correctly. So, required a self-join to an aggregate query, and one of the join conditions had to be the return value of an aggregate function. Total fuster-cluck. But I did it.
F'n index children, amiright?
And it's worth pointing out, for Tex's sake, that this is all a bunch of welfare data.  Pure communist database.
What happens if they don't have a child?
Then you write the code to return a "GFY". 
Logged

A Friend of Charlie

  • Founding Member
  • Post Whore Extraordinaire
  • *****
  • Posts: 66721
  • Proud to be a BotL
    • CigarBanter
Re: 9/25/2015
« Reply #265 on: September 25, 2015, 05:04:41 PM »



It took a day-and-a-half of banging my head on the desk, but I figured out how to write this damned query. Sheesh.
SQL?
Yeah. Had to select which of one or more children of a particular guardian has the birthdate closest to the guardian's enroll date.
Definitely not my forte.  I was dealing with a proxy server issue.  Gee, I hate Windows.
Would have been easy in a properly normalized database, or if I could just write some C# code. As it was, this was all coming from one query, and my query had to replace another query and have the same fields but return the index child correctly. So, required a self-join to an aggregate query, and one of the join conditions had to be the return value of an aggregate function. Total fuster-cluck. But I did it.
F'n index children, amiright?
And it's worth pointing out, for Tex's sake, that this is all a bunch of welfare data.  Pure communist database.
What happens if they don't have a child?
Well, since this is a database of information about mothers, infants, and early childhood home visits, not having a child is not a business case I have to deal with.

How about if the welfare recipient simply identifies themselves as a mother of an infant?
Logged

CigarGuy87

  • Non-Founding Member
  • Esteemed Status
  • *****
  • Posts: 11706
  • The tundra is thawing
Re: 9/25/2015
« Reply #266 on: September 25, 2015, 05:10:33 PM »

It took a day-and-a-half of banging my head on the desk, but I figured out how to write this damned query. Sheesh.
SQL?
Yeah. Had to select which of one or more children of a particular guardian has the birthdate closest to the guardian's enroll date.
Sounds like the same stuff I do, lots of medical SQLs for the important people.
Logged

A Friend of Charlie

  • Founding Member
  • Post Whore Extraordinaire
  • *****
  • Posts: 66721
  • Proud to be a BotL
    • CigarBanter
Re: 9/25/2015
« Reply #267 on: September 25, 2015, 05:17:33 PM »

I'm calling it a day.  Ciao.
Logged

Threebean

  • Guest
Re: 9/25/2015
« Reply #268 on: September 25, 2015, 05:18:42 PM »

I'm calling it a day.  Ciao.
Have a great evening, Mr. Mayor.  Hope you get to do something mayoral, like smoke a cigar.
Logged

razgueado

  • Founding Member
  • Esteemed Status
  • *****
  • Posts: 18582
  • KG7OCA
Re: 9/25/2015
« Reply #269 on: September 25, 2015, 05:23:40 PM »



It took a day-and-a-half of banging my head on the desk, but I figured out how to write this damned query. Sheesh.
SQL?
Yeah. Had to select which of one or more children of a particular guardian has the birthdate closest to the guardian's enroll date.
Definitely not my forte.  I was dealing with a proxy server issue.  Gee, I hate Windows.
Would have been easy in a properly normalized database, or if I could just write some C# code. As it was, this was all coming from one query, and my query had to replace another query and have the same fields but return the index child correctly. So, required a self-join to an aggregate query, and one of the join conditions had to be the return value of an aggregate function. Total fuster-cluck. But I did it.
F'n index children, amiright?
And it's worth pointing out, for Tex's sake, that this is all a bunch of welfare data.  Pure communist database.
What happens if they don't have a child?
Well, since this is a database of information about mothers, infants, and early childhood home visits, not having a child is not a business case I have to deal with.

How about if the welfare recipient simply identifies themselves as a mother of an infant?
We shoot them.

Okay, we don't.  Again, this is tracking home visits by nurses or other social workers.  If the nurse or social worker doesn't see the child, the home visit isn't completed and doesn't count.
Logged
Pages: 1 ... 16 17 [18] 19 20 21