Joining Multiple Tables
Hello Forum,I have a quick concept question. Here is the code:[code]SELECT prod_name, vend_name, prod_price, quanityFROM orderitems, products, vendorsWHERE products.vend_id = vendors.vend_idAND...
View ArticleA GROUP BY rule
Here is something that I read and I cant figure it out. (by the way this is my last post for awhile). [quote]Every column listed in GROUP BY must be a retrieved column or a valid expression (but not an...
View ArticleCombining two qureies to one
Hi ,I have two query and the explanation is we run the query pasted in file OpenRejectedReport.txt. Then the output (let’s call it output 1) of that query is iterated in C# code (For loop) and for...
View ArticleCreating Combined Queries
Hello Help forum,[code]SELECT vend_id, prod_id, prod_priceFROM productsWHERE prod_price <=5UNIONSELECT vend_id, prod_id, prod_priceFROM productsWHERE vend_id IN (1001, 1002);[/code][code]SELECT...
View ArticleUsing Subqueries as Calculated Fields
I have a concept question on this code:[code]SELECT cust_name,cust_state, (SELECT Count(*) FROM orders WHERE order.cust_id=customers.cust_id) as ordersFROM customersORDER BY cust_name;[/code]I...
View ArticleQuestion on executing DTUTIL script to copy SSIS packages from SQL Svr 2008...
In an effort to COPY SSIS packages from a SQL Server 2008 R2 box to a SQL Server 2014 box I found a script to help me do that but we're having 2 sets of problems:1. I tried executing the DTUTIL script...
View ArticleNon cursor based looping within a script.
I have a script that I am trying hard not to use a cursor for.The script will insert values into a table, but I have the following scenario.Lets say the table I wish to insert into has four columns. 1....
View ArticleSSIS Performance Question - Child Packages
I've stumbled into an unexpected situation.I'm observing significant performance differences depending on how a child Package is launched.Scenario 1 : Single Master Package calling Specific...
View ArticleWhere to start?
I've just installed SQL Server Express 2014 on my development machine, and I'm looking at the Management Studio Object Explorer. It's a bit daunting and not really intuitive. Is there a tutorial around...
View ArticleNeed help with shrink
Hello experts,I'd like to setup a job that will take a log backup, and then shrink the log file for certain specific databases. Now, the only problem here is that the log backup supposedly runs every 1...
View ArticleConvert Value Returned by Row_Number() Function to Text Based on Relationship...
I'm using the SELECT below to pull a list of parts and rank them by the number of times that they have been ordered. I would like to take them and then convert the 'Ranking' in high level text...
View ArticleTSQL query to get employee name from employee table by using id from user table
How to write a sql statement that can get the name from employee table by using id from user table ?--User tableDECLARE @user TABLE (id INT, name nvarchar(32),firstname nvarchar(32))insert into @user...
View ArticleGet distinct records for paging when joining tables
I have a problem with the following (very simplified) SQL Server code. I have a webpage that displays (distinct) cases. The page has paging implemented,so each time a user clicks next or previous,...
View Article*** In case you missed it, SQL Server Developer's Edition is now FREE!!!! ***
At the end of March, 2016, Microsoft announced that the Developer's Edition is now FREE! Please see the following URL for...
View Articleghjghjghjg
https://www.livpure.in/content/livewwe-wrestlemania-32-live-en-direct-s-treaming-online-freehttps://www.livpure.in/content/livewrestlemania-2016-live-en-direct-s-treaming-online-freehttps://www.livpure...
View ArticleHandling xml data and formatting into separate table
I have xml data in table, here xml data looks mentioned below,And it’s taken from different table for each row[b][i]TableA[/i][/b]Tab_id xml_data1 xml_data1 -- eg: Table 12 xml_data2 -- eg: Table...
View ArticlePassing variables into SSIS config files
Hello SSC friends,I have been tasked with creating a dynamic SSIS config file for several packages. I will need to pass in different environment variables for FTP sites and environments (dev, qa, uat,...
View ArticleAirSnore Review - Does It Work?
AirSnore Review out As well as your wellbeing and Health care Professional — your best and primary source on no matter regardless of whether or not a dietary dietary supplement is Harmless and audio...
View ArticleService Broker "The target service name could not be found.."
Hi I wonder if anyone can help...I've restored a broker db backup onto a single instance, 2014 environment. I've re-enabled broker, set the correct db authorization & set new broker ID with...
View Article