Forum Replies Created

Viewing 15 posts - 316 through 330 (of 911 total)

  • Reply To: Toilets and Your Systems

    I am sort of famous for being the "standards Uber Alles" guy in the SQL community. I'm very proud of it and it served me very well. I've written 10...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: Transposing the data and then converting monthly data to daily data

    >> I have a Budget Table in the following format <<

    This is very nice of you. Unfortunately, we have to use SQL, so we need DDL instead of a narrative...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: Query to fetch quarter & year from date

    There are proprietary temporal functions for formatting dates and working with them. Your code will never port to another SQL product. For example, the ANSI/ISO standard SQL uses the cast...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: FUN only, solving a Puzzle.

    This puzzle was solved many years ago by Richard Romley. He was an SQL programmer at a Wall Street brokerage firm who likes to write solutions to SQL puzzles. Back...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: How to preserve leading zeros with insert into

    >> Below is the CREATE TABLE script [sic: statement] NSERT INTO drops my leading zeros. These are important because I have a query that I want to test out that...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: The "Median" Function

    The median is actually trickier than you might think. The first question to ask is whether or not the value returned as the median has to exist in the data....

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: Find and Copy Data from Another Table

    You never read the part of the start of every SQL forum is posted for the last 30 years about providing DDL when you post, did you? You also believe...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: Document storage

    Several decades ago I put in a document database (text base) for Southern California Edison. The project was to build a document base for the legal department that handles their...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: UPDATE statement on CTE with INNER JOIN

    >> I have never heard of a "tibble", so I googled it. Nothing. Not sure how widespread that term is. <<

    The term was coined by Phil Factor and it even...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: UPDATE statement on CTE with INNER JOIN

    I think your approach is wrong. A name and a description are two distinctly different kinds of attributes; which one are you using in regard to products? Using a CTE...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: Identifying Empty columns

    To add to what Grant said, you might also want to look out for constraints, triggers, and references on those empty columns..

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: Help with query

    Jeff Moden wrote:

    jcelko212 32090 wrote:

    &gt;&gt;

    SELECT rm_id FROM Foobar

    EXCEPT

    SELECT rm_id FROM Vague_Relationships;

    >> Since I DID provide the DML and a substantial amount of data for anyone (including you) to test with, you...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: Help with query

    >> I need help writing a query. I have 2 table with below structure <<

    Why did you fail to post DDL?? What you did post has huge problems. Columns are...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: Slow running "ranking" problem

    To add to what Jeff said, it's really not that hard to write a bunch of stored procedures for the nested set model. I published a few of these in...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

  • Reply To: Stable Marriages Using SQL Server

    You might want to look at the book "The Stable Marriage Problem." By Dan Gisfield and Robert W. Irving. (ISBN-10 02620171185) MIT press. I also posted a solution to this...

    Please post DDL and follow ANSI/ISO standards when asking for help. 

Viewing 15 posts - 316 through 330 (of 911 total)