what is the query for reduce redundancy in table plz help me
7 3134
What do you mean by redundancy ?
Do you mean records that are older than a specific date ?
What do you mean by redundancy ?
Do you mean records that are older than a specific date ?
i mean one table have data's with redundancy...i want write query for select data's without redundancy
My apologies for being thick, but by redundancy, do you mean duplicate records ?
Could you give a brief example from the table of records that are deemed redundant, then I can suggest a means of selecting them.
Cheers
yes i mean duplication of records ....when we write a query that omit all dublication records from table and display them into another new table without dublication
Cheers
There is some useful info on duplicate records in the following article.
http://www.kodyaz.com/articles/delete-duplicate-records-rows-in-a-table.aspx
I know it's to do with deleting duplicates, but it should give you some ideas.
ck9663 2,878
Recognized Expert Specialist
if it's a complete duplicate (meaning all columns are the same) you can simply include the keyword DISTINCT on your select
try:
select distinct * from tablename
i mean one table have data's with redundancy...i want write query for select data's without redundancy
there is no word called data's, its data.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Riley DeWiley |
last post by:
I am continually amazed by SQL's ability to humble me ....
I have a toy query into a toy database that looks just like this:
SELECT .
FROM f, fw, w
WHERE f.id = fw.fid and fw.wid = w.id and w.id in (((((select distinct w.id
from w where w.x in ('a', 'b') )))))
GROUP BY .
HAVING count(f.id) = (select count(id) from (((((select distinct w.id from w
|
by: srinivas |
last post by:
hi I have the data in sql server table like
OrderID Trans ID
74 1
74 4
74 5
76 1
76 4
76 5
|
by: frizzle |
last post by:
Hi there,
Still building my forum.
I have a certain mysql-query i just can't figure out.
These are my tables (simplified):
categories -> id, description
forums -> id, cat_id, description
threads -> id, forum_id, date, title, text
I suppose each speaks for itself.
|
by: maffonso |
last post by:
Hi guys,
I have built a cross reference query (columns is year).
I would like to change the caption and adjust others things.
The best way would be to wrap the query in a form, but soon
2007 will begin And I will have to maintain the form.
I worry mostly about the caption of the cross query.
How can I change the caption of a cross query without use a form.
Thank you all
|
by: csgraham74 |
last post by:
Hi Guys,
I was wondering if someone could help me with an access query.
I basicallly have two tables A & B
Im table A there are numerous records with Fields1 & fields 2
I want to use table B to update table A. Bascically i need to compare
table A & Table B - if records exist in Table B that are not in Table A
| |
by: gazsharpe101 |
last post by:
Hi, I have a problem which should have a relatively simple solution, I just cannot find it.
I have a select query which gives me the following results:
Company_Name Staff_FirstName Staff_Surname Staff_DOB
ABC Ltd Joanne Robinson 08/12/1950
DEF Ltd Kevin Smith 25/04/1963
ABC Ltd Paul Jones ...
|
by: cov |
last post by:
I have a query where I'm attempting to pull data from 3 different
tables using php and mysql. I had hoped to have a unique identifier
to help ensure referential integrity but it appears that unique number
won't always be a possibility so I won't bank on it at all.
I have two like fields in these two tables 'area' and 'equipment' and
though there is a possibility of having two different pieces of
equipment within two areas called by the...
|
by: sinner |
last post by:
hi,
i faced a problem when i tried to retrive value from two table using a common value.
ie
table1 has emp_id and name,table2 has emp_id and prod..
i tried to use the query
select name,prod from table1,table2 where table1.emp_id='some value';
The problem was there was redundancy of data in table2 and using distinct key word also i got unwanted values.
ie.
select distinct name,prod from table1,table2 where table1.emp_id='some value';
i...
|
by: akomiakov |
last post by:
Is there a technical reason why one can't initialize a cost static non-
integral data member in a class?
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |