Viewing 14 posts - 1 through 14 (of 14 total)
could you give me any example ??
May 13, 2012 at 5:08 pm
The Output shall get the Count For Each Country and Each City
May 8, 2012 at 5:40 pm
I tried that ...to convert each attribute as separated Element
-----------------------------------------------------------------------
--------------------------------------------------------------------------
DECLARE @l TABLE (ID INT, [Name] VARCHAR(30), Location VARCHAR(100))
INSERT INTO @l (ID, [Name], Location)
SELECT 1, 'Ronaldo', 'Country:Spain, City:Madrid, Country:France'
UNION ALL SELECT...
May 8, 2012 at 2:47 pm
thanks dwain.c
what if the cell may contain more than one country or more than one city
SELECT 1, 'Ronaldo', 'Country:Spain, City:Madrid, Country:Spain'
UNION ALL SELECT 2, 'Messi','Country:Spain, City:Barcelona, City:Madrid'
UNION ALL SELECT 3,'Rooney','Country:England,...
May 8, 2012 at 2:14 pm
Thanks a lot Lynn Pettisv 🙂
April 9, 2012 at 1:44 pm
Split Function Code
USE [Test]
GO
/****** Object: UserDefinedFunction [dbo].[Split] Script Date: 04/07/2012 19:03:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER FUNCTION [dbo].[Split](@String varchar(8000), @Delimiter char(1))...
April 7, 2012 at 11:03 am
I got what i want by doing that
In My Example The Location Data like That
[Country] Egypt [City] Alexandria [Country] France [City] Alexandria
[Country] USA [City] New York [Country] France [City]...
April 7, 2012 at 11:03 am
Sure i know Normalization is the best solution 🙂
but that is not available in my situation ...the requirements to be like what i did ...i can't change it
April 5, 2012 at 2:57 am
no .. may be some rows will have country only without any city to be like that only (no key and no value for the city)
Country:<Country>
without any city
and may...
April 4, 2012 at 1:43 pm
Let The First Example I think it was not clear enough but the last is Very Clear to my Idea ... The Last Question for You that Because as i...
February 17, 2011 at 1:10 am
I will give another Example .... if i'm Hotel Owner
and I have 3 Categories on it Normal,High,Kings Rooms
so i will have that Records
ID, StartDate, EndDate, RoomName,IsAvaliable
1 , 2-1-2011, 2-10-2011, Normal...
February 16, 2011 at 2:49 pm
I Want Something Like Intersection between Records that have IsAvalibale=false... The Result of That Intersection will be Records of dates....
There is A different Between Production Date and ExpiredDate and...
February 16, 2011 at 2:38 pm
Viewing 14 posts - 1 through 14 (of 14 total)