Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all 13329 articles
Browse latest View live

query to get table name and its dependent objects

$
0
0
Hi All,

I need couple of queries for

1. Query to get a TABLE and its dependent VIEW ONLY
2. Query to get a TABLE and its dependent OBJECTS

Thanks
Ram

Converting Excel Formula into Access SQL

$
0
0
Hello everyone,

I've been having problems with a formula that i have in Excel that i wish to convert into access in order to play around with my database.
Can somebody please tell me where i'm going wrong ?


OTD Réel: VraiFaux(Ou([011- Extraction FA ENSEMBLE]![OTD Prév]=1;Et([livraisons]![Dt BL]<=[livraisons]![Dt Prom];[livraisons]![Qté facturée]=[livraisons]![Qté cde];"1")))VraiFaux([livraisons]![Dt BL]<=[livraisons]![Dt Prom]; [livraisons]![Qté facturée]/[livraisons]![Qté cde];"0")

=SI(OU(D3=1;ET(B3<=C3;E3=F3));1;SI(B3<=C3;E3/F3;0))*

B-->Date BL
C-->Date Promise
D--> OTD Prev
E-->Qté facturée
F-->Qté cmdé

Kind regards !

Moving records to another identical table using SQL keeping relationships

$
0
0
Hi there everyone,
I have two tables one with prospect data [Prospects] and another that tracks call results [Results]. When the result of a call to prospect ends with a decline or bad number, those prospects are moved to a table called Rejections.

Since the Call Results form uses a combo to select the prospect from the [Prospects]table and therefore has a relationship, how do I move unwanted prospects to the other table [Rejections] while keeping the relationship with the [call result] table in tact using an SQL Query?

Thanks for all your help.
I am a complete Novice...:-)

Darren

Error in silent installation of db2 9.7 in linux

$
0
0
Hi

i installed db2 v9.7 in my linux system with generating a response file and when i deistalled it and again tried with my response file it showing an error the command not found for every step in installation. can anyone solve this .

Thanks in advance

Help with database design assignment

$
0
0
Hello

I know this is not always accepted on Forums but I am so desperate. Please help even a subtle hint would be appreciated

We received the following pieces of an excel worksheet( there is 7 in total) and need to draw a fully 3rd normal form ERD from it.
sampleWorksheet.JPG
(this is only the first one, would like to do the others without help)

I am struggling to identify the Entities and each corresponding entities. Here is what I have so far:
sampleWorksheet2.JPG

I think that I am heading off in the wrong direction with this.
Attached Images

How to calculate the Numblockpages

$
0
0
hi

Informational tokens are "DB2 v9.7.0.5",

i need to set a numblockpages for bufferpool which is having low hit ratio and also page stealing


BPNAME -- BP_DATA
NPAGES -- 4048
PAGESIZE -- 4096

NUMBLOCKPAGES should be 2-3 % of bufferpool size

this are the comments
Note that the parameter name is slightly misleading in that it is not the number of pages that are allocated to the block-based area, but the number of extents. The actual number of pages allocated is (NUMBLOCKPAGES * EXTENTSIZE). Additionally, although there is a restriction that NUMBLOCKPAGES cannot be more than 98% of the overall buffer pool size.

4048 = 3 % = 121

extentsize = 32

121 * 32 = 3872 pages , the numblockpages should be 3872 pages ??




regds
Paul

Fell the msdb database. Went to this fun mode.

$
0
0
Backups I have but how to restore from them it is unclear - suspend mode.
In attempt to transfer it to the EMERGENCY mode writes
Msg 5058, Level 16, State 6, Line 2
Option 'EMERGENCY' cannot be set in database 'msdb'.
And how to fight against it???

Auto Normalizing a Table

$
0
0
Hello!

I have two tables, one for questions, the other (a child) for responses. They were working fine until I combined the question table with another table, which then changed the ID so that the answers no longer correspond. How do I get the child table to to automatically update the foreign key numbers? There is no text to compare such as "A = B." THe only thing to compare are the Old ID/FK numbers. Thanks for any help.

reorg clean up options

$
0
0
Db2 V 9.7

Having HADR set were DR is enabled for read access DB2_HADR_ROS = yes

Have a partition table which is having huge delete indexes keys

Need to execute reorg for clean up

reorg indexes all for table tabschema.tabname allow write access cleanup only ;

Will this effect my DR database, as user access it 24/7. Will HADR will go into replay mode.



regds
Paul

Sqlstate 57053

$
0
0
I am facing a strange issue:
I have an app with triggers, functions and SP that works fine on 9.7 LUW.
I've migrated the database to 10.5 FP4, but I keep receiving SQLCODE -746 and SQLSTATE 57053 on all the triggers that are calling SP that reads data from the table being changed. The code is the same.
I've put DB2_RESOLVE_CALL_CONFLICT on YES, then ALL, but did not solve the issue.

Does anyone have any idea what changed from 9.7 to 10.5 in this area? I'm surprised that the same code works fine on 9.7, but not on 10.5.

Env: DB2 LUW 9.7 FP 7/ 10.5 FP 4 on Windows 2008

Hi everyone

$
0
0
Hello, I'm a newbie and I need to post a question of an interview about DB and Sql.
Where can I start it?
Thank you

Please help me

$
0
0
Good day everyone ,


could you please help me to write critical review about this article "
A Survey of Data Mining and Knowledge Discovery Software Tools"
by

Authors: Michael Goebel University of Auckland, Auckland, New Zealand
Le Gruenwald University of Oklahoma, Norman, OK

Different versions of same stored procedure?

$
0
0
Hi!

I have a stored procedure and it is called with a start and stop time.
For some time periods it will hide some of the fields in the stored procedure, which it should not.
I have deployed the code with a hardcoded test column so it will start with "1" and this column
is hidden if you use certain timeperiodes, even if it always should be shown
since is is "Select "1", col2, col3..."

I have used:
select * from syscat.procedures where procschema = 'myschema'

and there is only one occurence of the stored procedure there with the
correct CREATE_TIME and TEXT_BODY_.

I am wondering if some old version of the stored procedure is runned when certain timeperiods are
used. Does anybody know how I can check this, or what the problem is here?

it's possible ??

$
0
0
I'm a newbie in mysql programming, and i would create a mysql function myFunction with a string parametre; that query a table and reconstruct a string from the query-result like this example :

Code:

myTable
 ---------------
|id  |  value  |
 ---------------
| id1 |value1    |
| id2 |value2    |
| id3 |value3    |
| id4 |value4    |
 ---------------

Calling this function is like this

Code:

myFunction('value2#value1#value4')
and must return

Code:

'id2#id1#id4'
Thank you very much

waxspace.com Offers Quality VPS Servers Canada Based with 24/7 Technical Support

$
0
0
Waxspace provide VPS Linux Hosting plans not only full root SSH access but also enable you to host unlimited domains, install custom software/applications and resell hosting to provide you the convenience and independence of a dedicated server.

Our VPS hosting services are fully managed and monitored and come along with 24x7 live chat and trouble ticket support. Your services are always included with the server hardening help,
Yes, FREE Migration! We will move your existing website to your Shared Web Hosting service account within minimum time.
Fast Servers, Reliable Network & Great Support - GUARANTEED!


10% Exciting Offer Discount
==========================================
VPS-1 : Linux VPS Starter Plan
==========================================
Features -
> Disk Space 10GB
> Bandwidth 1 TB
> 1 vCore CPU
> 1 GB RAM
> Free instant setup
> 1 IPv4 and 1 IPv6 Included
> 7 Days money back guarantee
> 24x7 customer support

Price : $8/Month Exciting offer

==========================================
VPS-2 : Linux VPS Economy Plan
==========================================
Features -
> Disk Space 25 GB
> Bandwidth 2 TB
> 2 GB RAM
> 2 v Cores CPU
> Free instant setup
> 1 IPv4 and 1 IPv6 Included
> 7 Days money back guarantee
> 24x7 customer support

Price : $12 /Month Exciting offer


==========================================
VPS-3 : Linux VPS Deluxe Plan
==========================================
Features -
> Disk Space 50GB
> Bandwidth 4 TB
> 3 vCore CPU
> 4 GB RAM
> Free instant setup
> 1 IPv4 and 1 IPv6 Included
> 7 Days money back guarantee
> 24x7 customer support

Price :$16/Month Exciting offer

==========================================
VPS-4 : Linux VPS Premium Plan
==========================================
Features -
> Disk Space 100GB
> Bandwidth 8 TB
> 4 vCore CPU
> 8 GB RAM
> Free instant setup
> 1 IPv4 and 1 IPv6 Included
> 7 Days money back guarantee
> 24x7 customer support

Price : $27/Month Exciting offer

==========================================
Payment Methods/Options
==========================================
Pay Pal
MasterCard
Visa



99% Uptime Guarantee
We work hard to maintain servers uptime but there are many unpredictable threats such as DDoS attacks, hardware issues, natural disasters that can effect our datacenter, so we guarantee 99% uptime.

24/7 Support
We have a team of support staff waiting to deal with support tickets. If you ever feel you need a little extra help feel free to send us a support ticket. We can guarantee a quick resolution to any problems you encounter.

-----------------------------------------------------------
Visit Website :- http://waxspace.com/secure-hosting/cheap-vps-linux

NOTE : Available payment gateways are Paypal

cheap vps linux |cheap vps hosting linux | Linux VPS Hosting |cheap vps hosting linux|cheap linux vps

Functions that should return the same result but do not

$
0
0
I have two functions both should have the same results but they do not.


Public Function DefaultGreeting() As String
On Error Resume Next
DefaultGreeting = "Dear " & [Forms]![frm_contacts]![Dear] & ":"
End Function


Public Function DefaultBodyText() As String
On Error Resume Next
DefaultBodyText = [Forms]![frm_e_mailing]![mess_text] / this equals this just pulled from a table "Dear " & [Forms]![frm_contacts]![Dear] & ":"
End Function

Cheap cPanel hosting at waxspace starts from $1/month.

$
0
0
Waxspace Hosting is a leading provider of website hosting, reseller hosting and VPS. Waxspace makes shared Web Hosting easy reliable and affordable!

We provide best of Linux Shared Hosting .

BEST SHARED HOSTING PLAN

>Starting $1 /mo #1 - Most Selling Web Hosting Plan on Waxspace.com with Unmetered Bandwidth.

>Linux Plan #1

Features:-

-HosT 1 Domain,
-Unlimited Raid Disk Space,
-Unmetered Bandwidth,
-5 MySQL Databases,
-1 Dedicated IP + $3/month,
-Free Instant Setup

visit - http://waxspace.com/$1-dollar-hosting

>Starting $3.00/MO #2 Best Web Hosting Plan on Waxspace.com with Unmetered Bandwidth.

>Linux Plan #2

Features:-

-Host 12 Websites
-Unlimited Raid Disk Space
-Unmetered Bandwidth
-20 MySQL Databases
-30 Sub-Domains
-6 Parked Domain
-6 Addon Domain
-40 FTP Accounts

Visit - http://waxspace.com/2-dollar-hosting

>Starting $6.00/MO #3 - Perfect Web Hosting Plan on Waxspace.com with Unmetered Bandwidth.

>Linux Plan #3

Features:-

-Host 30 Websites
-Unlimited Raid Disk Space
-Unmetered Bandwidth
-40 MySQL Databases
-Unlimited Sub-Domains
-20 Parked Domain
-20 Addon Domain
-60 FTP Accounts

Visit - http://waxspace.com/secure-hosting/shared-hosting

>Starting $12.00 #4 - Powerful Web Hosting Plan on Waxspace.com with Unmetered Bandwidth and Space.

>Linux Plan #4

Features:-

-Host Unlimited Websites
-Unlimited Raid Disk Space
-Unmetered Bandwidth
-Unlimited MySQL Databases
-Unlimited Sub-Domains
-Unlimited Parked Domain
-Unlimited Addon Domain
-Unlimited
FTP Accounts

Visit - http://waxspace.com/linux-web-hosting

NOTE : 30 Days Cash-Back Guarantee

Available payment gateway Paypal
Follow us:@wax_space Questlot on Twitter


| one dollar hosting | 2 dollar hosting | linux shared hosting | best shared hosting | cheap shared hosting | unlimited hosting | 1 dollar web hosting | cheap unlimited hosting |

Student Scores display in multiple columns

$
0
0
Hi everyone could you please help me with this. I'm really new in Access and I'm trying to learn it by my self.
My first question is, how can I display the scores of a student in horizontal? (Bad english)
I have two tables, one with students information and another for students' score.
When I query may table using this

Code:

SELECT Student.StudentName, WrittenScores.Score
FROM Student INNER JOIN WrittenScores ON Student.[ID] = WrittenScores.[StudentID];

It resulted to this
Capture.PNG

All I want to do is something like this
Capture.PNG1.PNG
Attached Images

Updating 1 million records

$
0
0
HI ,

I have 1 million of records(distinct accounts) in the TABLE1 , I want to update the SALE_LOC_ID ( location where the Account has been initiated) in the TABLE1.

TABLE2 -- consists of the Tranaction details , so I need to take the SALE_LOC_ID from TABLE2 and update it in TABLE1 for each account.

So I am making use of the procedure and using the cursor to update the records , its taking much time for updating.

Is there any better solution to update the records other than the cursor option .

Below is the procedure
----------------------------



-----------Keeping all the statements in the procedure -------------------------------------

DECLARE v_stmt VARCHAR (3000);
DECLARE VARIABLE_ACCT_NO CHARACTER (19);
DECLARE VARIABLE_SALE_LOC_ID INTEGER;

DECLARE C1 CURSOR WITH HOLD FOR statement1;


------- Delcaring one temporary GTT----------------------
DECLARE GLOBAL TEMPORARY TABLE SESSION.TMP1
(
"ACCT_NO" CHARACTER(21) ,
"SALE_LOC_ID" INTEGER
)
NOT LOGGED
WITH REPLACE
ON COMMIT PRESERVE ROWS;

----------------Inserting the data into the Temporary GTT----------------------

INSERT INTO SESSION.TMP1
(select A.ACCT_NO, B.SALE_LOC_ID from TABLE1 A join TABLE2 B
on (A.ACCT_NO = B.ACCT_NO)
)


SET v_stmt = 'SELECT A.ACCT_NO, A.SALE_LOC_ID FROM SESSION.TMP1 A FOR FETCH ONLY';

PREPARE statement1 FROM v_stmt;

OPEN C1;

FETCH C1 INTO VARIABLE_ACCT_NO, VARIABLE_SALE_LOC_ID;

UPDATE TCPS.TABLE1
SET SALE_LOC_ID = VARIABLE_SALE_LOC_ID WHERE ACCT_NO = VARIABLE_ACCT_NO WITH UR;
CLOSE C1;


Thanks
Ganga reddy

Help on some issues

$
0
0
Hi

I have created a client form with a sub client, a inspection form with a drop down box which is populated from the client form

the issue I have is that I need the clients name and address to show on the invoice on the report page.

I also need to export a number of reports as pdf docs and some xml information in one e-mail ( can this be done?)

if a field is changed. can the software be set up to automatically send an e-mail to advise the client of the change.
Viewing all 13329 articles
Browse latest View live