473,394 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to include all records from table after Join?

Hi all, i have something like this;

WeekNumber ---- TagsIssued
201019 ---- 196
201020 ---- 4
201021 ---- 1
201022 ---- 1
201024 ---- 16

TagsRemovedDate ---- TagsRemoved
201019 ---- 182
201021 ---- 3
201022 ---- 1
201023 ---- 1
201024 ---- 90

I want to merge WHERE TagsIssuedByWeek_Red.WeekNumber = TagsRemovedByWeek_Red.TagsRemovedDate

but the end product looks something like this

WeekNumber ---- TagsIssued ---- TagsRemoved
201019 ---- 196 ---- 182
201021 ---- 1 ---- 3
201022 ---- 1 ---- 1
201024 ---- 16 ---- 90

(notice week 201020 from TagsIssued and 201023 from TagsRemoved is gone)

My SQL looks something like this;
Expand|Select|Wrap|Line Numbers
  1. SELECT TagsIssuedByWeek_Red.WeekNumber, TagsIssuedByWeek_Red.TagsIssued, TagsRemovedByWeek_Red.TagsRemoved
  2. FROM TagsIssuedByWeek_Red, TagsRemovedByWeek_Red
  3. WHERE (((TagsIssuedByWeek_Red.WeekNumber)=[TagsRemovedByWeek_Red].[TagsRemovedDate]));
  4.  
Could you please help me merge the 2 tables without losing rows? Thanks a million! =)
Mar 8 '11 #1
2 2537
Rabbit
12,516 Expert Mod 8TB
You will need to use a full outer join to get all records from both tables.
Mar 8 '11 #2
Thanks =)
found my answer here in case anyone needs

http://www.databasejournal.com/featu...oft-Access.htm
Mar 8 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Dave | last post by:
Thanks in advance for you help. SQL Server 2000 I have a complex join, but a simple example will do the trick so... table1 (placement records, possibly many per case,highest ID being most...
2
by: drdeadpan | last post by:
Hi all, Is this legal ? SELECT a.col1,b.col2,c.col3 FROM tab1 a WITH (UPDLOCK) , tab2 b, tab3 c WHERE a.col1 = b.col1 and b.col2 = c.col1 WIll the above cause a UPDLOCK on tab1 and...
7
by: Chris | last post by:
I'm using ASP.NET and SQL Server and this might be an obviuos question for most, but if I have a table that contains several fields that I need to relate to just one field in another table, how do...
3
by: Dragon | last post by:
Can I Join two Data Table in Data set ?? Is it using the DataSet.Merge ? Any example ?
5
by: redstamp | last post by:
Try as I might I cannot find a way to write an access query to return a result set with the records from my database WITHOUT a certain set of values within a field. To explain, I have a table of...
1
by: JustAQTCub | last post by:
Is it possible to obtain data from two different databased, each being on a different server. How would the query be written? example: TABLE1 on SERVER1 db1name/db1pass@instance1...
2
by: headache | last post by:
Greetings. I'm a first time poster, so feel free to clue me in to any protocol I may have inadvertently violated. I have an issue that has arisen where I need to join 3 tables where 2 of the 3...
5
by: binky | last post by:
Question for all you SQL gurus out there. I have a (seemingly) complex query to write, and since I'm just learning SQL server, am not sure how to go about it. Tables: t_trans t_account All...
8
by: gertie2008 | last post by:
Hi, I've got 3 tables: 1.) book: BookID, Title 2.) bookcomment: BookCommentID, BookID, ContactID, Comment 3.) responsibilitylog: ResponsibilityID, BookID, ContactID, DataFrom, DateTo ...
1
by: irinamas | last post by:
I have two tables: table1 with columns (ID, A1, A2) and table2 with columns (ID, newA1, newA2). I need to update values in table 1 with new values from table 2 only where IDs match. My query doesn't...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.