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: ShawnMolloy
  • Order by date
  1. ShawnMolloy

    Help with a UNION!

    Please refer to the first post - for your reference here it is: SELECT * FROM (SELECT ROW_NUMBER() OVER (ORDER BY A.UserId) AS rowNum, A.*, B.UserName FROM WiseTopic_Friend A INNER JOIN WiseTopic_User B ON A.FriendId = B.UserId WHERE a.userid=@UserId) AS X...
  2. ShawnMolloy

    Help with a UNION!

    Hi Rac2 Thanks for your reply. I agree - the way you described is how it theoritically SHOULD work. If you look at my query above, and imagine the varible @USERID is equal to 3, then you will see that its exactly the same as what you just wrote out. WHERE a.friendid=@UserId The problem is I...
  3. ShawnMolloy

    Help with a UNION!

    I am trying to determine what "Friends" a "User" has, based on a lookup table that holds a friends/user relationship information. The table looks like this: UserId | FriendId ----------------- 1 | 3 7 | 9 4 | 3 1 (Shawn) is friends with 3 (Ashlee), so therefore...
  4. ShawnMolloy

    Creating a Views table... worried about billions of records!!

    The number one reason why we're recording ip's is to stop people from hitting F5 numerous times in order to increase their rankings for various things like videos and blog posts. We're checking for duplicate IP views that are consequtive. Thanks for your input. I feel better already! Shawn...
  5. ShawnMolloy

    Creating a Views table... worried about billions of records!!

    Here is the page I'm workin' on: http://wisetopic.com/profile/?UserId=1 Each user has a "Profile". Every time a request is made for that user's profile (or a user's image, a video, etc) I am recording that "View", or instance of http request, in a table that corresponds to the type of "View"...
  6. ShawnMolloy

    Creating a Views table... worried about billions of records!!

    I created two "user" tables, one called "USER" that just holds the user's data such as their username, email address, and password; and a second table called "USER_VIEWS" that only holds their views. The reason why I dont increment an int column in the original USER table is because we need to...
  7. ShawnMolloy

    Creating a Views table... worried about billions of records!!

    Hi Experts! While creating a table in a production SQL 2005 database to hold the "views" of a user profiles, I realized that this table will very quickly grow to such a scale that worries me a bit. I don't have exp w/database of this volume. Can anyone who is more weathered in the database...
  8. ShawnMolloy

    Problems using SQL 2005's ROW_NUMBER() function

    Just Curious - Why the need to assign an alias to the sub query if its never referenced. For example this works: SELECT * FROM (SELECT ROW_NUMBER() OVER (ORDER BY A.UserId) AS rowNum, A.*, B.UserName FROM WiseTopic_Friend A INNER JOIN WiseTopic_User B ON A.UserId = B.UserId) AS X...
  9. ShawnMolloy

    Select statements in one table

    Awesome - this works perfectly! Thanks for your help again Jim. Shawn Molloy Seattle, WA
  10. ShawnMolloy

    Problems using SQL 2005's ROW_NUMBER() function

    Why does this query return an error saying: "Invalid column name 'rowNum'." SELECT ROW_NUMBER() OVER (ORDER BY userid) as rowNum, userid, dateadded FROM Wisetopic_Friend WHERE rowNum > 3 Shawn Molloy Seattle, WA
  11. ShawnMolloy

    Select statements in one table

    Do you mean I have to create variables to hold each select result then add it to a temp table? can you explain a littler further please? Thanks for your help! Shawn Molloy Seattle, WA
  12. ShawnMolloy

    Select statements in one table

    A union on this code puts both of the values in two seperate rows in one single column with no name. I'd like the data to be in a table like this: MessageCount | CommentCount ---------------------------- 0 | 7 Unless I'm using the union statement...
  13. ShawnMolloy

    Select statements in one table

    how do i combine these select statements into one table? select count(*) from wt_message MessageCount where recipient=1 select count(*) from wtcomment commentCount where userid=1 Thanks, Shawn Molloy Seattle, WA
  14. ShawnMolloy

    Why does this location.href function not work in an iframe?

    Yeah great catch! Stupid mistake on my part.... Another reason why it wasn't working (and I was getting no error) was because, for some weird reason the calling function wasn't being recoginzed if typed like this: <div onclick='album_go('4');'> but when I changed it to the double quotes it...
  15. ShawnMolloy

    Remove a DataItem from a list with the RepeaterItemEventHandler event

    How do I stop from adding this item while examing each item in a repeater control through the RepeaterItemEventHandler event handler? if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { // skip if the album is empty...
  16. ShawnMolloy

    Why does this location.href function not work in an iframe?

    Per the subject, this doesn't work in an iframe. function album_go(albId) { alert('Won't see this...'); location.href = 'tray_photos.aspx?albumId='+albId; } Shawn Molloy Seattle, WA
  17. ShawnMolloy

    How to get the top level querystring from within an IFRAME

    So if a page has a URL of http://mySite.com/thePage.aspx?id=4 and inside "thePage.aspx" there is an iframe with a url of http://mySite.com/theIframe.aspx how can theIframe.aspx see the "id" querystring parameter? -- shawn Shawn Molloy Seattle, WA
  18. ShawnMolloy

    Convert KB to MB

    Can you access the Powershell from the .NET framework? Is there some constants you have access to in C# to more easily perform this operation? Shawn Molloy Seattle, WA
  19. ShawnMolloy

    Convert KB to MB

    Nevermind - that was a stupid question! Shawn Molloy Seattle, WA
  20. ShawnMolloy

    Convert KB to MB

    Hello, How can I use C# to calculate a conversion from a value in kilobytes to Megabytes? -- shawn Shawn Molloy Seattle, WA

Part and Inventory Search

Back
Top