Forum Replies Created

Viewing 15 posts - 31 through 45 (of 60 total)

  • RE: USE with local variable

    piershogg (4/22/2008)


    Although there are other alternatives, it would be useful if I could use USE database with a local variable in a user stored procedure held in the Master database....

  • RE: Script Question

    Sorry, I just noticed the comments at the top of your code.

    ENGINE=InnoDB DEFAULT CHARSET=latin1;

    ENGINE might refer to the underlying database program (or connectivity to it) that this code is run...

  • RE: Script Question

    Apoztel (4/16/2008)


    Thanks. Could you also tell me why linkcat is set as an int and explain what foreign keys and constraints do? Also is the '1' after 'FK_tbl_links_ ' the...

  • RE: how to use Subviews in SQL 2005

    When you say sub-view, what do you mean exactly? Do you mean to UNION 250 tables together, or JOIN them, or what?

    Please give examples (a couple example table structures,...

  • RE: convert columns to rows in a table

    My question was more about the table2 structure, and what you're expecting to see.

    Either way, you're not talking about a PIVOT as much as a full transpose. There's probably some...

  • RE: convert columns to rows in a table

    Can you provide more information (column names, etc.)?

    Generally, you'll pivot over a key field value (for instance, how do you know that value 1 goes in column 1, not column...

  • RE: Interview guidelines

    [To me] the more DBA the position, the more specific syntax-type questions I ask, while the more Developer the position, the more conceptual the questions. (admittedly, I haven't interviewed many...

  • RE: are there "arrays" in sql 2005 ?

    Basically, stats people do this sort of problem alot. You might hear about deciles or quartiles; that's when you take your range of data, and assign it to different groups...

  • RE: are there "arrays" in sql 2005 ?

    Matt Miller (3/28/2008)


    Or....you could just use the NTILE function to achieve the same result...:)

    You guys and your fancy SQL 2005 functions...:hehe:

    That's a nice one. How's the performance vs. something like...

  • RE: are there "arrays" in sql 2005 ?

    Jeff Moden (3/28/2008)


    Any code to go along with this "FWIW"? 😉

    What, you want answers too? 🙂

    Well, assuming you have an integer-ish rowid field on the table, MOD it by the...

  • RE: are there "arrays" in sql 2005 ?

    blahknow (3/28/2008)


    Hi jeff,

    This is how it works

    "myPhones" is a stored procedure to supply the telemarketing personnel phone numbers to make phone calls.

    phone numbers are stored in various tables of various...

  • RE: are there "arrays" in sql 2005 ?

    Matt Miller (3/26/2008)


    dfalso (3/26/2008)


    Right, that's what I wrote 🙂

    Mid-day blindness due to lack of caffeine....hehe...

    glad we agree:hehe:

    No prob, it'd be worse if we didn't :hehe:

  • RE: are there "arrays" in sql 2005 ?

    Right, that's what I wrote 🙂

  • RE: are there "arrays" in sql 2005 ?

    blahknow (3/25/2008)


    GilaMonster (3/25/2008)


    No arrays. Some people use XML, but that can get messy.

    If you go into a bit more detail on what you're doing, maybe we can suggest an alternative.

    Hi...

Viewing 15 posts - 31 through 45 (of 60 total)