Quantcast
Channel: Questions in topic: "alias"
Browsing latest articles
Browse All 13 View Live

How to divide by a total from an alias column or sub query

Current working Query: use pubs select SUM(ytd_sales) AS YTD_Sales, SUM(ytd_sales) AS "Average Sales", titles.type AS "Type", COUNT(*) AS "Books Sold" from titles GROUP BY type; Creates 4 columns :...

View Article



Deploying SQL Server Alias to Clients

Hi all, Does anyone have a tried and true method to ***push*** an alias for a SQL Server out to Clients in a non-domain environment?

View Article

Alias definintion, what am I doing wrong?

Hi, I tried to define an alias on a server (as part of a database consolidation), but it doesn't seem to work. These are the steps I did: 1. started SQL configuration manager on the server 2. created...

View Article

how to register publicaion in replication monitor

Hi in my server replication is configured, when i trying to add publisher to repliaction monitor getting below error: sql server replication requires the actual server name to make a connection to the...

View Article

Is it possible to update two fields for two separate rows in the same table...

I'm trying to update two fields for two separate rows in the same table. Is this possible? I keep getting error message: "Msg 4104, Level 16, State 1, Line 4 The multi-part identifier "a.Enddate" could...

View Article


Can I have Dynamic Column Name based on Nested Case When

Hi I am in SQL Server 2008 R2 and am working with some temp tables i created. i am hoping to be able to have a dynamic name for a column based on which instance of a nested Case When is used. my code...

View Article

Complicated problem with temp table column aliases used in a subquery

Came across a problem relating to temp table column alias used within a subquery. What it boils down to is I can reference a column name which doesn't exist within the temp table used in the subquery,...

View Article

Never seen this: LEFT OUTER JOIN ACTIVE STUDENTS ON STUDENTS.ID

Found this view that has multiple joins, but this one has me stumped:FROM PERSON P WITH (NOLOCK) LEFT OUTER JOIN ACTIVE STUDENTS ON STUDENTS.ID = P.ID AND STUDENTS.[STATUS] = 1 AND STUDENTS.RNK = 1...

View Article

Browsing latest articles
Browse All 13 View Live




Latest Images