Quantcast
Channel: VBForums - Database Development
Browsing all 2918 articles
Browse latest View live
↧

Image may be NSFW.
Clik here to view.

OleDbCommand Query Using Parameters Not Quite Working

Hello, Running VB.net and using an Access MDB as the backend database. Connection string for database is: Code: OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0 ;Data Source=db.mdb") I'm trying to do...

View Article


Table structure help

I have a table for peopleĀ’s profiles, ID name, DOB the usual stuff, I want a bio / description of the person as well. Easy you use a text column. But I want want to allow editing, history etc. capture...

View Article


[RESOLVED] SQL Update question

I find myself needing to update a rather large table with a new field. What I need is for this new field to hold basically a row number. There are already a lot of records in the table and the...

View Article

Image may be NSFW.
Clik here to view.

Sum and Count in Sqlite

This is my Presence table that tracks the students' attendence and absence I can display the list of attendees on a grid easily For this I use: Code: StrSql = "Select Fname,Ā  Lname , " & _ "...

View Article

Sqlite delete from a table with primary key

Hello My table sqlite has 8 records. When I delete the first record then I add a new record , the new record takes an ID = 9. Is there a way that the new added record takes the ID of the deleted one....

View Article


Image may be NSFW.
Clik here to view.

SELECT MAX from 2 different tables

Hy guys and girls. I need to get the MAX value (MyValue) from two tables. The picture gives a better clue about my problem. One more thing, table1 contains all the names inside, while table2 doesn't....

View Article

Image may be NSFW.
Clik here to view.

[RESOLVED] SELECT MAX from 2 different tables

Hy guys and girls. I need to get the MAX value (MyValue) from two tables. The picture gives a better clue about my problem. One more thing, table1 contains all the names inside, while table2 doesn't....

View Article

Image may be NSFW.
Clik here to view.

[RESOLVED] delete all duplicate rows except one

Hi. I am posting this and at the same time will also be looking for the solution. We have a database table of what employee is on call for any given day. If I had designed this table, it would've only...

View Article


Image may be NSFW.
Clik here to view.

Simple math column inside SQL SELECT Query

Hello once again :p This picture gives the best clue about my problem. In short, I want to calculate mileage between the current mileage and mileage recorded when the vehicle was bought in the first...

View Article


Is there a way to sum with left join?

Hi. I can do this with union but I wanted to ask if it is possible woth a left join I have 2 tables tblDWTicket and tblDWBookingFee . tblDWTicket will always have a transaction with values...

View Article

Image may be NSFW.
Clik here to view.

[RESOLVED] MS SQL stored procedure with ORDER BY parameter

I want users to have the option to ORDER BY data before creating the report. ORDER BY is defined with 3 values (database column names); this call goes with the stored procedure. Code: ALTER PROCEDURE...

View Article

Access mdb Dependency?

I may well be looking at the wrong thing, here, but the situation seems fairly clear. I have a table that includes a certain field. That field has always been essentially a foreign key field for the...

View Article

String + SQL

Hi, This does work: HTML Code: StrSQL_00 = "INSERT INTO db_00 (" & Strng1 & ") VALUES (" & rs_MSExcel_01!abonnee & ")" This does not work : HTML Code: Strng2 = "rs_MSExcel_01!abonnee"...

View Article


tinyint vs NULL

A lazy google search and I cannot find anything. I wanted to ask if there is any benefit on speed using a value (like -1) on a tinyint vs NULL. MSSQL server.

View Article

[RESOLVED] Case statement in inner join

Hi. MS SQL , is there a way to case so you can have a different join per contrition? So something like: Code: select * from TBankĀ  T inner join tblDWLoyaltyMember L on (Case WHEN...

View Article


Image may be NSFW.
Clik here to view.

SELECT MAX(ID) WHERE and then do the math?

I have table "MyTable" with rows ID int (auto_increment), number varchar, date date, trans(key) varchar, valueIN decimal, valueOUT decimal, updateValue decimal As you can see in the picture, I have...

View Article

[RESOLVED] Check for changed tables SQL

Hi, Sorry if I have posted in the wrong spot. Using SQL Server 2017. Our Retail POS system completely shuts down if we lose internet service, which is unacceptable. I have been tasked with creating a...

View Article


Count function and inner join problem

Hello experts I'm using Sqlite3 and RC5 My tables look some how like these: Code: Set Cnn = New_c.Connection(, DBCreateInMemory) Cnn.Execute "Create TableĀ  Tbl1(Item_ID Integer, BrandID Integer)"...

View Article

[RESOLVED] SQL field size concerns

I am changing my database system from ACCESS to SQL. I am currently setting up the database and have some confusion over field size, for those fields that the size can be set. I have selected Nvarcar()...

View Article

Design-Question: one or two tables for "personal" data?

Hi Folks, would like to know your thoughts and opinion on the following: I'm restarting my "Skydive School"-Project (Software to handle our skydiving students): Currently i'm mulling over: i know i...

View Article
Browsing all 2918 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>