Hi, I need to get the last entries from two different tables in MSSQL. I can get the last entry for one table by usung the following. SELECT * FROM dbo.Shaft_Scales WHERE dbo.Shaft_Scales.ID = (SELECT max(ID) from dbo.Shaft_Scales ID) The problem is adding another table. Please help
I’m using SQL Server 2005 Express edition as the Database and Microsoft VB.NET 2005 as the programming language for my project. At the moment I’m having a problem of inserting data into one of the tables in my database through my VB.NET application. I did successfully inserted data through my [...]
can anybody say what is the most basic diff. between making pf by writing DDS and sql table by create table command because both can having index…..
I’m getting the following error with the attached SQL statment on MSSQL: UPDATE IMMUNE I
How do I get specific values from a SQL table to the ComboBox in the running mode?
Recovery or rollback procedure when using SQL tables on AS400
What is the quickest way of achieving a total column datatype change from number(9) to varchar(3)? I have a few million rows in this table and SQL will run forever ….
We have an sqr (running against a MS SQL Server DB), that references a dynamic temporary table variable in several begin-sql and begin-select statements. I am getting a syntax error in one begin-select statement where I can’t resolve the problem. It occurs after the INNER JOIN on the [$Temp_Final_IDlist] temp table. It appears as if [...]
when i print a work order in the application i need to update a field in a sql workorder table to true
hi i have a set of data number | code 1 | abc 2 |ff 3 |aa 3 |bb 4 |cc 5 |dd 5 |ee and i’m wondering if there is a way to convert this data so it looks like number | code1 |code2 1 | abc |null 2 |ff |null 3 |aa |bb [...]
Hello Everyone, I’m currently trying to prove a concept on why we should re-create our old existing PFs into SQL defined tables (Portability, performance, etc.). After taking a look at some files, I noticed an even larger problem that would ruin my chance of proving this concept. Unless some major changes happen, we won’t see [...]
I have a table (book) where there is a column that contains number in some rows and numbers with an addition *infront. I want to be able to perform some calculation with the table but the ‘*’ is preventing me from doing this. So how do I update or alter the table so that I [...]
I have a positional flat file which I need to load contents into a SQL table. I’ve created an SSIS package and will need to call a VB script to parse the file but since I’m new at VB and SQL I need some assistance creating the VB script. There are 4 fields in the [...]
i need to take a column in my database and split it into different columns based on a question id. Basically i want to write a whole bunch of sql statements that are non related for one grid – a whole bunch of sql statements each with their own where statement
in SQL 2000 it was easy to cntl-right-click and select multiple views, stored procedures or tables and generate one script which could be changed (using SQL Analyzer) to create new objects (search and replace text) with different names. This was a big time saver but I don’t know how to do that in SQL 2005. [...]
Hi. I have two tables in a simple database: Prices ID (int, identity, PK) Year (smallint – year of value) Quarter (smallint – year quarter 1-4) Area (smallint – FK to Areas.ID) Index (float) Areas ID (int, identity, PK) Name (varchar) So, as you can see, the Prices table contains price information over time for [...]
I have a table. The structure looks like this: id(pk) year col1 col2 date 1 2008 50 60 feb09 2 2008 40 70 feb10 3 2009 60 80 feb23 4 2009 50 70 feb24 5 2008 40 80 feb26 I have no idea how to write a sql query to output a table which includes [...]
is it possible to retrieve a table using .NET code manipulate in code e.g calculating formulas based on values stored in table retrieved and then pivoting it in code and putting it back into another table
I have been out of touch from VB Programming for a long long time. In front of me is a task and I am ambitious about doing it in a quick & smart way. I work for a small businessman (a shop keeper) who buys Steel wireropes from wholesalers & sells it as a retailer. [...]
How can I duplicate every record in a table with a query in SQL?





