Quantcast
Channel: PSST0101 » SQL
Browsing all 10 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

PeopleTools Reference: Meta-SQL %Table

%Table Replaces with the actual table name of the given record. Generally, this just means adding a “PS_” to the front of the record name. But, PeopleTools actually checks the alternate table name from...

View Article



Image may be NSFW.
Clik here to view.

PeopleTools Reference: Meta-SQL %SelectAll

Generates a select statement that selects all the fields from a chosen record. Typically, when you use the %SelectAll, you would use a record object to store the results. That way you don’t have to...

View Article

Image may be NSFW.
Clik here to view.

Tools

Here is a great tool for formating SQL: Instant SQL Formatter

View Article

Image may be NSFW.
Clik here to view.

Oracle Tip: Dropping a Database

Here is how to drop a database in Oracle. Make sure that have ORACLE_SID set first. Log into sqlplus with sysdba privileges: sqlplus /nolog connect / as sysdba Run the following commands in sqlplus:...

View Article

Image may be NSFW.
Clik here to view.

Query Tool that includes Meta-SQL

Once I learned about SQL Developer, I switched from using Toad as my Query Tool.   If I were to improve one thing though, it would be that the query tool understand Meta-SQL.  Now, if I copy SQL from...

View Article


Image may be NSFW.
Clik here to view.

Looking for Orphan Rows

Here is some SQL that you might find helpful: SELECT ‘SELECT ”’ + C.RECNAME + ”’ AS RECNAME, OPRID FROM ‘ + D.TABLENAME + ‘ A WHERE NOT EXISTS (SELECT ”X” FROM PSOPRDEFN B WHERE A.OPRID = B.OPRID)...

View Article

Image may be NSFW.
Clik here to view.

Any Interest in Program?

I have been tinkering around with a little Java application I started for running queries against a PeopleSoft database.  I was just curious if there was any interest in such an application.  Here is a...

View Article

Image may be NSFW.
Clik here to view.

Querying the Component

Here are some queries to find things out about the component. This one is a simple list of all the fields in the component (doesn’t take into account subpages, etc): SELECT CP.PNLGRPNAME, CP.MARKET,...

View Article


Image may be NSFW.
Clik here to view.

Explorations in SQL: Fixing Duplicates for Index

I had an issue with some indexes that would not create. The database complained that the table had duplicates in it that violated the index.  For me, the table was PS_AUC_HDR, but these steps should...

View Article


Image may be NSFW.
Clik here to view.

Creating a Readonly Database User

Here’s a common task: You need to create a database user with read only access.  You have some power users who know how to use SQL, and they are allowed to see all of the data in the system.  You can...

View Article
Browsing all 10 articles
Browse latest View live




Latest Images