Showing posts with label familiar. Show all posts
Showing posts with label familiar. Show all posts

Monday, March 19, 2012

a table/column to table/column data check (was "Help Please, SQL something Simpl

Hi all, I am not over familiar with SQL, I am a VB programmer, simply I need to achieve the following within Enterprise Manager.

I have 2 tables, different designs, different number of rows, I simply need to check whether the contents of a column in the first table is in a column in the second table, just simply a table/column to table/column data check for the same data content.

Easy Peasy for you guys, any help would be appreciated.Hi all, I am not over familiar with SQL, I am a VB programmer, simply I need to achieve the following within Enterprise Manager.

I have 2 tables, different designs, different number of rows, I simply need to check whether the contents of a column in the first table is in a column in the second table, just simply a table/column to table/column data check for the same data content.

Easy Peasy for you guys, any help would be appreciated.

Welcome to the forum,ok here is your solution

CREATE TABLE t1(
col1 VARCHAR(20)
,col2 VARCHAR(20)
,col3 VARCHAR(20)
)

CREATE TABLE t2(
col4 VARCHAR(20)
,col5 VARCHAR(20)
)

The sql statement to check content of a col1 is in col4 or not...

SELECT * FROM
t1,t2
WHERE t1.col1=t2.col4|||Many thanks, will give it a try a wee bit later and post result.

Many thanks...|||Hi, this appears to work fine, however if I change the logic to check what is not in table2 it appears to go into a endless loop, any help appreciated.|||Hi, sorry after further testing, I may not have explained myself very well, apologies, I need to access row1 of table1 and then scan column2 in table2, the entire table, for the occurence of the data item in row1 table1.

Many thanks in anticipation.|||Hi, this appears to work fine, however if I change the logic to check what is not in table2 it appears to go into a endless loop, any help appreciated.
Test it ...

insert into t1 values('joy','datta','harry')
insert into t1 values('Pink','datta56','harry2')
insert into t1 values('Sheep','datta5','harry3')
insert into t1 values('Ghree','datta11','harry5')

insert into t2 values('Sheep','datta5')
insert into t2 values('Ghree','datta11')

SELECT * FROM
t1
WHERE t1.col1 NOT IN(SELECT t2.col5 FROM t2)|||Thanks sorted..

Thursday, February 9, 2012

A good book to start with

I am not a very begginer with sql server and I am familiar with some
concepts in sql server like DTS packages,Reporting services and database
objects .I'd like to start learning OLAP and data mining and I just wondered
if somebody can give me a path and introduce me a good book to start with.
Thanks
RayRayAll wrote:
"I'd like to start learning OLAP and data mining and I just wondered if
somebody can give me a path and introduce me a good book to start
with."
I recommend any of the following:
"Data Mining: Concepts and Techniques"
by Jiawei Han, Micheline Kamber
ISBN: 1558604898
"Data Mining : Practical Machine Learning Tools and Techniques"
by Ian H. Witten, Eibe Frank
ISBN: 0120884070, 1558605525
"Predictive Data Mining : A Practical Guide"
by Sholom M. Weiss, Nitin Indurkhya
ISBN: 1558604030
"Solving Data Mining Problems Through Pattern Recognition"
by Ruby L. Kennedy et al
ISBN: 0130950831
-Will Dwinnell
http://will.dwinnell.com|||A more basic and general view (recommended) is:
- MS Olap Unleashed (right, for SQL 7, but pretty usefull)
- MDX Solutions, George Spofford
Michael
"RayAll" <RayAll@.microsft.com> escribi en el mensaje
news:emNYRu8LFHA.1308@.TK2MSFTNGP15.phx.gbl...
>I am not a very begginer with sql server and I am familiar with some
>concepts in sql server like DTS packages,Reporting services and database
>objects .I'd like to start learning OLAP and data mining and I just
>wondered if somebody can give me a path and introduce me a good book to
>start with.
> Thanks
> Ray
>|||Again, back with SQL7, but very good, try Erik Thompsen's book
Microsoft OLAP Solutions
Dave Wickert [MSFT]
dwickert@.online.microsoft.com
Program Manager
BI SystemsTeam
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"MPS" <mps@.udd.cl> wrote in message
news:uyTcyRIMFHA.1300@.TK2MSFTNGP10.phx.gbl...
> A more basic and general view (recommended) is:
> - MS Olap Unleashed (right, for SQL 7, but pretty usefull)
> - MDX Solutions, George Spofford
> Michael
> "RayAll" <RayAll@.microsft.com> escribi en el mensaje
> news:emNYRu8LFHA.1308@.TK2MSFTNGP15.phx.gbl...
>
>|||Another really good book that'll get your thinking started in the right way:
Fast Track to MDX
Mark Whitehorn, Robert Zare and Mosha Pasumansky
"RayAll" <RayAll@.microsft.com> wrote in message
news:emNYRu8LFHA.1308@.TK2MSFTNGP15.phx.gbl...
>I am not a very begginer with sql server and I am familiar with some
>concepts in sql server like DTS packages,Reporting services and database
>objects .I'd like to start learning OLAP and data mining and I just
>wondered if somebody can give me a path and introduce me a good book to
>start with.
> Thanks
> Ray
>