Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: joelwenzel
  • Order by date
  1. joelwenzel

    Question from asp newbie

    also, note that session variables can hold any object (eg,, you can put a whole array in a single session variable)
  2. joelwenzel

    Question from asp newbie

    Here are some ways to do this...i know there are others as well but I do not know the sytax off he top of my head. Method 1: Session variables in asp script write something like Session("FirstName") = textboxID.text Do the same thing on the second page except replace the first name with the...
  3. joelwenzel

    Best Design for a booking system

    ok, I've come up with a design for showing the schedule. This will work in combination with a simple booking system. What do you think? I realize that my syntax is not proper. Also, I know it is bad to select everything. I was just trying to get the idea out there. -stores the regular weekly...
  4. joelwenzel

    Best Design for a booking system

    Ok, I realized a major problem with my design. I was thinking of it as one system (for booking) but what it really is is two systems...one for storing bookings, and one for showing a schedule of available time slots. It is the schedule part of this problem that I am having trouble with. Does...
  5. joelwenzel

    Best Design for a booking system

    I like your post. It is a good example. I was hoping I could avoid mapping out everyday of the year however Anyway, my system has a couple considerations that makes it hard to adapt to your system. First, I think your sysem requires all the time slots to be the same length right (eg all...
  6. joelwenzel

    Best Design for a booking system

    I am trying to create a booking database...but the design I keep coming up with makes me a bit uneasy. I don't really like it (because of massive joins involved in determining what time slots are available) but I don't see any other way to do this. So this is my design. --This table stores...
  7. joelwenzel

    Does this Union first and then fillter, or filter first then union?

    Hi, I have this select statment in a view (SELECT s.MyTime,p.FK_CategoryID, (s.Col1-p.Col1) as Diff FROM stats_main s,stats_comparison p WHERE s.FK_ComID = p.ComID) UNION ALL (SELECT s.MyTime,p.FK_CategoryID, (s.Col2-p.Col2) as Diff FROM stats_main s,stats_comparison p WHERE s.FK_ComID =...
  8. joelwenzel

    How can I select from a table where the tablename is a variable?

    ok, I've now looked into partitioning a bit more and I understand it now...just had to find an example. My original plan was to separate my table into several smaller tables specific to a category ID (that was in my original huge table)...and then find some way to do a SELECT from @TableName...
  9. joelwenzel

    How can I select from a table where the tablename is a variable?

    Well, for the application I am creating, people are almost as likely to search through data from 5 years ago as data from yesterday.
  10. joelwenzel

    How can I select from a table where the tablename is a variable?

    I found this article on dynamic SQL in case anyone else is interested. It is a very good overview of the advantages and pitfalls. http://www.sommarskog.se/dynamic_sql.html I am aware of horizontal/vertical partitioning but I have never fully understood the advantages. Suppose that I choose...
  11. joelwenzel

    How can I select from a table where the tablename is a variable?

    yes...I vaguely remember learning about query plans a long time ago. What it really sucks that i ccan store the query plan. Unfortunately, I don't know how else to do this. If I use dynamic SQL, I can break up my main table into several smaller tables (each with less then a million rows). If...
  12. joelwenzel

    how many rows is too many?

    hmmm this is interesting. I should be doing stuff like this more often...I'm not thinking about the actual issues enough but I guess that will come with experience. My issue was actually the query time length...but from what you are saying, I might as well be using denormalized tables (in...
  13. joelwenzel

    How can I select from a table where the tablename is a variable?

    yeah....I was thinking of something like that. Seems to be the way to go I guess. My tables are too long so I think I will break them up this way. thanks for the syntax.
  14. joelwenzel

    How can I select from a table where the tablename is a variable?

    so, I was thinking, one way to do this would be to create a stored procedure that would first select the tablenames from MyTable, then create a string select statement joining the tablenames to the string. And then it would call execute to run the string as an SQL statement. This would return...
  15. joelwenzel

    How can I select from a table where the tablename is a variable?

    Hi, I want to do something like SELECT * FROM (SELECT tableName FROM MyTables WHERE userID =3) tableName is a column in the table MyTables. tableName is the name of another table in the database. So what I want is to select from the data in the table whose name is tableName. What I don't...
  16. joelwenzel

    how many rows is too many?

    yes, that is right. I was saying I could denormalize them to reduce the table size. Basically, each row in the noralized table is described by 1 of 20 categories. Each data set will usually contain 20 datapoints corresponding to each category. I can just create a new denormalized table that...
  17. joelwenzel

    When should I use temporary tables?

    I have just learned about temporary tables and am wondering when I should use them. I am currently designing a table that is very long (~500 million rows specific to a UserID and a Date) and am wondering if it makes sense to create a temporary table for users for a specific date range when the...
  18. joelwenzel

    how many rows is too many?

    I am creating a database table and depending on how I design my database, this table could be very long, say 500 million rows. It is for an internet application that will be queried a lot (indexed on date and userID). Will it be slow for users to access data from this table? Should I consider...
  19. joelwenzel

    Can indices be created for views?

    ok, I wasn't sure ifview indices made sense or not. Thanks
  20. joelwenzel

    Can indices be created for views?

    I have a view that combines data from 4 tables. Can I create an index for the view? or should the indices created for the original tables speed up searching enough?

Part and Inventory Search

Back
Top