473,386 Members | 1,743 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,386 software developers and data experts.

Identifying through many columns

I have a huge table with 10m entries. But there is only 500,000 different. The only way to identify each different entry is concatenating many columns. The final result is a 20 characters long, which is not very useful for calculations. I would prefer a number.

Can I create a variable stored in a column that increases every time there is a change in some of the other columns? Is there a way to simplify the 20-characters-long variable?

See the example
ExampleSQL.jpg


SQL on DB2 v9.1



Thanks a million
Feb 1 '10 #1
3 1537
The solution is very simple, you must create a VIEW for that table !!!,
whatever query you are firing to get the above result (shown in screenshot), just type that in CREATE VIEW statement !
Feb 8 '10 #2
Thanks a million for your response.

What I really mean is that I don't have the column identifier. It is only there to see what I need. How can I get it in SQL?
Feb 8 '10 #3
What I've understood is that
you have displayed the values in column "CONCATENATE" by actually contatenating the character values in other columns right ?
& suppose the value of row1 & column 7 changes from A to B then the value will automatically change to B in the "CONCATENATE" column

Still may answer is the same, CREATE a VIEW.

Plz. read how to create a view & more important learn what is a VIEW of a table in relational database.
Feb 8 '10 #4

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

Similar topics

1
by: hokiegal99 | last post by:
This is not really a Python-centric question, however, I am using Python to solve this problem (as of now) so I thought it appropiate to pose the question here. I have some functions that search...
0
by: Joshua Beall | last post by:
Hi All, I've been taking a look at DB Designer 4, and looking through the documentation (http://www.fabforce.net/dbdesigner4/doc/index.html) I am a little unclear on some of their nomenclature:...
3
by: Jeff | last post by:
I am using SQL Server 2000. I have a table with, say, 20 columns. I have one procedure which updates all 20 columns at once, accepting a parameter for each column. However, I want to be able to...
1
by: Rob | last post by:
I'd like to be able to identify IDENTITY columns via the SQLDA. Looking up the DESCRIDE TABLE statement in DB2 OS/390 Ver7.1 SQL Reference doesn't mention that the SQLDA will contain any...
3
by: strauss.sean | last post by:
To all: Here's an interesting one: I have a query that produces 56 (!!) columns of data. The first three columns are "to repeat at left", as can be selected in Excel at File --> Page Setup -->...
3
by: Christopher Weaver | last post by:
I want to set a value in a specific field in the current row of a DataSet. This seems like the most basic thing to do but I can't find the syntax for identifying the current row. IOW, I can do...
4
by: Jan Nielsen | last post by:
Hi all I'm a former Access developer who would like to implement a many-to-many relation in about the same way you do in Access: With a subform and a combo box. Is it possible to use a...
2
by: pb648174 | last post by:
I frequently have the problem where I have a list of items to delete in a temp table, such as ProjectId Description ------------- ---------------- 1 ...
1
by: RP | last post by:
On my Windows Form, I have ten text boxes. I also have a DataGridView. When a user clicks a row on the DataGridView, the column values get displayed on their respective text boxes and are available...
2
TheServant
by: TheServant | last post by:
Hi everybody, I posted a similar question about 6~12 months ago with no definate answer, so I will give it another go, as the choice has popped up again in my programming life: If the number of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.