Hi, I'm having trouble returning all the columns from a Grouped By Union query in SQL 2014.
I'm trying to return the most recent search closed by company. I should only return 2 records. If I add the extra columns in the Group By clause I get extra unwanted rows.
SELECT...
Can someone please help me out with this query. I get a
error because one of the rows has an empty space in the YearEnd column.
SELECT
a.FirstName + ' ' + a.LastName AS FullName,
a.Initial,
a.Age,
b.Level2Company,
b.YearEnd,
FROM tblContacts a
INNER JOIN
tblSalary AS b ON a.CREF =...
I have been asked to change our intranet to change the background color of cells when a radiobutton is clicked. There are 160 radio buttons and I'm looking of a way to do this with minimal code changes. Here is an example:
<!-- Question 1 -->
<tr valign="top">
<td class="style20">...
Hi,
I'm having a problem with moving word documents from one file to another.
If System.IO.File.Exists("Shared Files\CVs\Original CV\" & objContact.OrigCVFilename) And System.IO.File.Exists("Shared Files\CVs\" & objContact.CVFileName) Then
System.IO.File.Move("Shared...
Can someone please help me with this?
DECLARE @REF int
DECLARE @PreferredEmail as varchar(50)
SET @REF = 102108
SET @PreferredEmail = IF (SELECT WorkEmailPreferred FROM tblContactPersonal WHERE CREF = @REF) =1
BEGIN
SELECT Email FROM tblContactPersonal WHERE CREF = @REF
END
ELSE
IF (SELECT...
I have a website written with PHP and MySQL. The company that designed it also hosted it. Now that the hosting is up for renewal, I would like to host it myself on my companies web server. I have been sent the data as a MS SQL Server Query File and the website as PHP files. I don't have either...
Hi,
I have a column in a Janus datagrid that shows dates as a string in the format 'mm/yyyy'.
04/2004
03/2006
01/2005
03/2005
01/2008
When I sort this column by clicking the column header I get this result
01/2005
01/2008
03/2005
03/2006
04/2004
which is obviously not want I want. I have...
We have some corrupt data in our tblCompanyHistory table.
I need to find the records Grouped by CREF that have a comp_order not starting with 1.
Here is some data.
CREF Comp_Order
--------------------
8 1
8 2
8 3
9 2
9 3
10 1
11...
Hi,
I'm not sure if this can be done.
I am using ASP.Net 2.0 / VS 2008 / VB
I have a page with a dropdownlist of user names. When the list is clicked (or before a user name is changed) I want to display a messagebox reminding the user to Save the current Page. Like: "Have you saved this page?"...
Hi,
I'm not sure if this can be done.
I am using ASP.Net 2.0 / VS 2008
I have a page with a dropdownlist of user names. When the list is clicked (or before a user name is changed) I want to display a messagebox reminding the user to Save the current Page. Like: "Have you saved this page?"...
Hi,
can anyone help me convert this string:
'German. Speaks Spanish Fluently, Dutch Fluently, English Fluently, Italian Advanced, French Advanced.'
INTO
'German. Speaks Spanish, Dutch, English Fluently, Italian, French Advanced.'
The string could be any combination of languages, the only...
Hi,
Using T-SQL, can anyone help me convert this string:
'German. Speaks Spanish Fluently, Dutch Fluently, English Fluently, Italian Advanced, French Advanced.'
INTO
'German. Speaks Spanish, Dutch, English Fluently, Italian, French Advanced.'
Many thanks
Hi all,
I have a simple programs that loops through a directory of word documents, opens the document and changes the template pathname. This works fine except when the document is locked by another user or contains macros that launches a form. My program will wait for a response from these...
Hi everyone,
Here is my function:
DECLARE @CursRef integer
DECLARE @MeetText varchar(1000)
DECLARE @MeetName varchar (51)
DECLARE @MeetDate char(11)
DECLARE CursorMeet CURSOR FOR
SELECT CONTACTCREF from tblMeetingDetails WHERE CLID=@CLID and CREF=@CREF AND DETAILTYPE='MEET'
ORDER...
I have a number of word docs with macros which generate report data from sql. Our users generate these documents and then often email them to clients. Depending on the email recipients email server, the attachment can be blocked due to it containing macros. Is there a neat solution to sending...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.