text
stringlengths
6
9.38M
select territoryid as unique_field, count(*) as n_records from `woven-passkey-328019`.`querry_adventureworks20211025`.`sales_salesterritory` where territoryid is not null group by territoryid having count(*) > 1
/* Navicat MySQL Data Transfer Source Server : 本机 Source Server Version : 80013 Source Host : localhost:3306 Source Database : mybatis-study Target Server Type : MYSQL Target Server Version : 80013 File Encoding : 65001 Date: 2020-01-18 23:46:05 */ SET FOREIGN_KEY_CHECKS=0; -- --...
CREATE TABLE `User` ( `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, `twitch_username` VARCHAR(64) NOT NULL, `twitch_userid` VARCHAR(64) NOT NULL, `twitch_nonce` VARCHAR(64) NOT NULL, PRIMARY KEY (`id`), UNIQUE INDEX `ui_twitch_userid` (`twitch_userid`) ) COLLATE='utf8mb4_general_ci' ENGINE=Inn...
select * from titleauthor; select * from publishers; select * from titles; select * from authors; SELECT * FROM sales; # Challenge 1 CREATE TEMPORARY TABLE first_table SELECT auts.au_id AS 'AUTHOR ID', auts.au_fname AS 'LAST NAME', auts.au_lname AS 'FIRST NAME', ta.title_id as 'TitleID', title.title as 'Title',title.p...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: May 13, 2021 at 11:30 AM -- Server version: 8.0.21 -- PHP Version: 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
SELECT * FROM POINT_USER_HISTORIES WHERE HISTORY_NO = ? AND USER_ID = ? ;
SELECT p.col_id AS Id, p.col_code AS Code, p.col_name AS Name, p.col_description AS Description, NVL(p.col_allowMultiple, 0) AS AllowMultiple, ------------------------------------------- f_getNameFromAccessSubject(p.col_createdBy) AS CreatedBy_Name, f_UTIL_getDrtnFrmNow(...
/* SQLyog Ultimate v12.09 (64 bit) MySQL - 8.0.18 : Database - shop ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE = '' */; /*!40014 SET @OLD_UNIQUE_CHECKS = @@UNIQUE_CHECKS, UNIQUE_CHECKS = 0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS = @@FO...
-- +goose Up -- SQL in section 'Up' is executed when this migration is applied CREATE TABLE user_equipment ( id bigserial PRIMARY KEY, user_id bigint NOT NULL REFERENCES users(id), equipment_id bigint NOT NULL REFERENCES equipment(id), attributes json NOT NULL, created_at timestamp NOT NULL, updated_at tim...
CREATE TABLE public.customer ( id varchar(26) NOT NULL, name varchar(100) NOT NULL, inserted_at timestamp NOT NULL, updated_at timestamp NOT NULL, CONSTRAINT customer_pk PRIMARY KEY (id) );
select COL_ID AS ID, COL_ALLOWADDPEOPLE AS AllowAddPeople, COL_ALLOWDELETECOMMENT AS AllowDeleteComment, COL_ALLOWEDITCOMMENT AllowEditComment, COL_ALLOWJOINDISCUSSION AS AllowJoinDiscussion, COL_ALLOWLEAVEDISCUSSION AS AllowLeaveDiscussion, COL_ALLOWREMOVEPEOPLE AS AllowRemovePeople, COL_ALLOW...
/* SQLyog v12.2.6 (64 bit) MySQL - 8.0.20 : Database - qfdmy ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIG...
CREATE TABLE VEVO AS SELECT * FROM CAVideos WHERE channel_title LIKE '%VEVO%' UNION SELECT * FROM DEVideos WHERE channel_title LIKE '%VEVO%' UNION SELECT * FROM FRVideos WHERE channel_title LIKE '%VEVO%' UNION SELECT * FROM GBVideos WHERE channel_title LIKE '%VEVO%' UNION SELECT * FROM INVideos WHERE channel_title LIKE...
USE sentigram; insert into `stoplist_indo_`(`stopword_`) values ('ada'); insert into `stoplist_indo_`(`stopword_`) values ('adakala'); insert into `stoplist_indo_`(`stopword_`) values ('adakalanya'); insert into `stoplist_indo_`(`stopword_`) values ('adalah'); insert into `stoplist_indo_`(`stopword_`) values ('a...
CREATE UNLOGGED TABLE IF NOT EXISTS raw.d2totals ( id integer primary key, committeeid integer, fileddocid integer, begfundsavail double precision, indivcontribi double precision, indivcontribni double precision, xferini double precision, xferinni double precision, loanrvci double pr...
-- -- PostgreSQL database cluster dump -- SET default_transaction_read_only = off; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; -- -- Roles -- CREATE ROLE centenodev_admin; ALTER ROLE centenodev_admin WITH NOSUPERUSER INHERIT NOCREATEROLE NOCREATEDB LOGIN NOREPLICATION NOBYPASSRLS PASSWORD '...
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 29, 2018 at 12:27 PM -- Server version: 5.5.57-0ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
/* Navicat MySQL Data Transfer Source Server : mysql Source Server Version : 50027 Source Host : localhost:3306 Source Database : productsys Target Server Type : MYSQL Target Server Version : 50027 File Encoding : 65001 Date: 2015-03-10 20:11:27 */ SET FOREIGN_KEY_CHECKS=0; -- ---...
# ************************************************************ # Sequel Ace SQL dump # Version 3034 # # https://sequel-ace.com/ # https://github.com/Sequel-Ace/Sequel-Ace # # Host: ls-ed52acd835d3b04e8df8a962fff8a5e1f827d6c5.camxrlw6o2ww.us-east-1.rds.amazonaws.com (MySQL 5.7.33-log) # Database: mbktabledata # Generati...
-- Database: mysql CREATE TABLE {table} ( `id` integer unsigned not null auto_increment, `when` timestamp not null default '0', `microsec` integer unsigned not null default '0', `module` varchar(64) not null, `message` varchar(200) not null, `level` tinyint not null, `level_string` varchar(8) not null, `pid...
CREATE DATABASE testPersiscal DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; USE testPersiscal; /* ACLARACIÓN: Dado el ejercicio, se diseña esta base de datos, especialmente para este ejercicio. De haber sido algo escalable, la misma tendría otras tablas como Marcas, Modelos, Rodados, Materiales, Ve...
ALTER TABLE public."Requests" ADD COLUMN "Guid" text;
1) DECLARE ORDER_DATA1 ORDERS.ORDER_DATA%TYPE ; CUST_ID VARCHAR2(10):=''; NEW_ORDER_DATA ORDERS.ORDER_DATA%TYPE:=''; ORDER_NUM VARCHAR2(6):=''; BEGIN SELECT ORDERS.ORDER_DATA INTO ORDER_DATA1 FROM ORDERS WHERE ORDERS.ORDER_NUM=2005; FOR i in 1..10 LOOP INSERT into ORDERS(CUST_ID,ORDER_NUM,ORDER_DATA) VALUES (ci,ordi,...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 15 Jun 2021 pada 16.43 -- Versi server: 10.1.38-MariaDB -- Versi PHP: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
Insert into category ( cat_id,cat_descr ) Values (121 ,'This category embeds iron products'); Insert into category ( cat_id,cat_descr ) Values (122 , 'This category embeds plastic products'); Insert into category ( cat_id,cat_descr ) Values (123 , 'This category embeds copper products'); Insert into category ( cat_i...
-- 1 SELECT empregados.nome, empregados.salario FROM empregados WHERE empregados.salario > 1000 AND empregados.salario < 1500 -- 2 SELECT empregados.nome, empregados.dataadmissao FROM empregados WHERE empregados.nfilhos > 0 -- 3 SELECT * FROM empregados WHERE empregados.nome LIKE "c%a" -- 4 SELE...
SELECT DISTINCT CopiedText FROM TableCopiedData
-- -------------------------------------------------------- -- 主机: 127.0.0.1 -- 服务器版本: 5.5.19 - MySQL Community Server (GPL) -- 服务器操作系统: Win64 -- HeidiSQL 版本: 9.3.0.4984 -- -------------------------------------------------------...
-- 한 줄 주석. /* 여러줄 주석. */ select * from tab; select * from test; --레코드 삽입.(insert하는 순서대로 입력되지 않는다.) --컬럼명을 생략하여 추가. --(컬럼의 순서에 유의하여 추가한다. : 값이 다른 컬럼에 입력되는 것에 주의) insert into test values(1, '박기범', 24,sysdate); --2번, 강인섭, 26, 현재날짜 insert into test values(2, '강인섭',26, sysdate); --컬럼명을 기술하여 레코드를 삽입.(...
-- SELECT -- last_name, -- first_name, -- points, -- (points + 10) * 100 AS "discount factor" -- FROM customers -- SELECT DISTINCT state -- FROM customers SELECT name, unit_price, unit_price * 1.1 AS "new price" FROM products
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Mar 03 Octobre 2017 à 19:06 -- Version du serveur : 5.6.17 -- Version de PHP : 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_...
INSERT INTO PUBLIC."CAR-ADVERTS" (GUID, TITLE, FUEL, PRICE, IS_NEW, MILEAGE, FIRST_REGISTRATION) VALUES('any_guid', 'honda', 'gasoline', 100, false, 0, NOW()); SELECT GUID, TITLE, FUEL, PRICE, IS_NEW, MILEAGE, FIRST_REGISTRATION FROM PUBLIC."CAR-ADVERTS"; CREATE TABLE PUBLIC."CAR-ADVERTS" ( GUID VARCHAR(100) NOT NU...
USE concurrency; INSERT INTO codes (`code`, `desc`) VALUES (1, 'start'); INSERT INTO codes (`code`, `desc`) VALUES (2, 'acceptConsent'); INSERT INTO codes (`code`, `desc`) VALUES (3, 'declineConsent'); INSERT INTO codes (`code`, `desc`) VALUES (4, 'classificationEnd'); INSERT INTO codes (`code`, `desc`) VALUES (5, 'sa...
INSERT INTO user VALUES ('1', '2019-03-11 00:00:00', 'zhyjhdw@126.com', '2019-03-11 00:00:00', 'admin','$2a$10$PXZ9oJ6U36/ZuG8G4S4pKeR3.98GnSg03CpY0W8irb5W5p6pQ7rei','18539161177','2019-03-11 00:00:00'); INSERT INTO role VALUES ('1','2019-03-11 00:00:00','管理员','管理员'); INSERT INTO role VALUES ('2','2019-03-11 00:00:00',...
SELECT * FROM ITEM_CHOICES WHERE ITEM_NO = ? ;
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 28, 2020 at 11:10 AM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
{%- macro text_type_value(text_length) -%} {%- if target.type == "redshift" -%} CHARACTER VARYING({{ text_length }}) {%- elif target.type == "snowflake" -%} CHARACTER VARYING(16777216) {%- elif target.type == "bigquery" -%} STRING {%- else -%} TEXT {%- endif -%} {%- endmacro -%}
--DATA MANIPULATION WRITTEN EXAM --NO. 1 CREATE TABLE zEmployees ( EmployeeId INT NOT NULL, LastName VARCHAR (30) NOT NULL, FirstName VARCHAR (30) NOT NULL, Age INT NOT NULL, PositionCd INT NULL ) CREATE TABLE zPositions ( PositionCd INT NOT NULL, PositionName VARCHAR (30) NOT NULL, NotFlagUse int NULL, PRIMARY ...
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: apoteka -- ------------------------------------------------------ -- Server version 5.7.19 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!...
CREATE TABLE IF NOT EXISTS users ( id integer primary key autoincrement, username VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, password VARCHAR(300) NOT NULL ); CREATE TABLE IF NOT EXISTS recipes ( id integer primary key autoincrement, user_id int NOT NULL, title VARCHAR(300) NOT NULL, ingredients TE...
rem rem $Header: pupbld.sql 3020101.1 94/09/28 17:47:13 jathomps Generic<base> $ rem Copyright (c) Oracle Corporation 1988, 1994. All Rights Reserved. rem rem +---------------------------------------------------------------------+ rem | PUPBLD.SQL -- CREATE PRODUCT AND USER PROFILE TABLES | re...
/*Modifica el script SQL anterior, añadiendo al final la sentencia necesaria para borrar la tabla PROVINCIAS. ¿Puedes? ¿Influye el que la tabla PERSONAS este relacionada con ésta mediante una clave foránea?. Razona tu respuesta.*/ DROP TABLE PROVINCIAS CASCADE CONSTRAINTS; --SE PUEDE ELIMINAR SIN NINGUN PROBLEMA...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1:3306 -- Tiempo de generación: 09-09-2020 a las 16:45:08 -- Versión del servidor: 8.0.21 -- Versión de PHP: 7.2.24-0ubuntu0.18.04.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!4...
drop table if exists dbo.br1660DefaultList ; drop table if exists #th ; drop table if exists #Clients ; select uth.UserId as ClientId ,case when ts.TariffId = 4 then 2 else 1 end as ProductType ,t.Name + '/' + ts.Name as TariffName ,cast(dateadd(d, ts.MaxPeriod, uth.DateCreated) as date) as TariffEndD...
create table `monitor_memory_host_relation` ( `host_id` int comment '主机ID', `monitor_memory_id` int comment '内存监控信息ID' ) comment = '主机与主机内存监控关系表'; create table `monitor_cpu_host_relation` ( `host_id` int comment '主机ID', `monitor_cpu_id` int comment 'CPU监控信息ID' ) comment = '主机与主机CPU监控关系表'; alter table ...
prompt PL/SQL Developer import file prompt Created on 2015年1月21日 by user set feedback off set define off prompt Disabling triggers for CB_APPLICATION_SERVER... alter table CB_APPLICATION_SERVER disable all triggers; prompt Disabling triggers for CB_BANDWIDTH... alter table CB_BANDWIDTH disable all triggers; pr...
select count(*) from information_schema.tables where table_schema='toDb' and table_name='tableName'
ALTER USER amphictyonis WITH encrypted password 'password';
-- MySQL dump 10.13 Distrib 5.6.24, for Win64 (x86_64) -- -- Host: localhost Database: blogger -- ------------------------------------------------------ -- Server version 5.6.26-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;...
REM Script: Activity4 REM SQL create table salesman1(salesman_id int,salesman_name varchar2(10),salesman_city varchar2(20),commission int); desc salesman1 desc salesman1 select * from salesman1; create table salesman2(salesman_id int,salesman_name varchar2(10),salesman_city varchar2(20),commission int); des...
alter table CUBAMAPEXAMPLE_SALES_PERSON drop column SALES_ORDER_ID cascade ;
-- Your SQL goes here CREATE TABLE tunnels ( id INTEGER AUTO_INCREMENT PRIMARY KEY, mobile_id VARCHAR(255) NOT NULL, computer_id VARCHAR(255) NOT NULL, created_time INTEGER NOT NULL );
select distinct(users.name), address from users inner join bookingdetails b on users.user_id = b.user_id where users.user_id not in (select user_id from bookingdetails b where lower(name) = 'hdfc') order by users.name;
INSERT INTO user_table VALUES (default, 'Amanda', 4); INSERT INTO user_table VALUES (default, 'Price', 25); INSERT INTO user_table VALUES (default, 'Jake', 3);
#Default Constraint is used to assign a default values to every row of a column CREATE TABLE sales_bouns( bouns_id INT PRIMARY KEY NOT NULL AUTO_INCREMENT, employee_id INT NOT NULL, FOREIGN KEY(employee_id) REFERENCES sales_person(employee_id), bouns_amount INT NOT NULL DEFAULT 100 ); #All sales people SE...
DECLARE CURSOR c_emp (emp_id NUMBER) IS SELECT employee_name, job_title, manager_id FROM employees WHERE employee_id = emp_id; CURSOR c_manager (mgr_id NUMBER) IS SELECT employee_name, job_title FROM employees WHERE employee_id = mgr_id; v_empid NUMBER; v_ename VARCHAR2(15); v_e...
ALTER TABLE public."Activities" ADD COLUMN "Result_Id" bigint; ALTER TABLE public."Activities" ADD CONSTRAINT "Activities_Result_Id_fkey" FOREIGN KEY ("Result_Id") REFERENCES public."Results" ("Id") MATCH SIMPLE; ALTER TABLE public."Activities" ALTER COLUMN "CreatedOn" TYPE timestamp without tim...
Insert into orders(order_id,order_date,price,customer_id)values(2000,now(),20000,1000);
DECLARE --internal v_dsinterval NVARCHAR2(255); v_yminterval NVARCHAR2(255); BEGIN --get data from proper place SELECT COL_INTERVALDS, COL_INTERVALYM INTO v_dsinterval, v_yminterval FROM tbl_DICT_StateSlaEvent sle WHERE col_id = :StateSLAEventId; --nor...
ALTER TABLE instituciones_nacionales ALTER COLUMN observaciones SET DATA TYPE VARCHAR(200); ALTER TABLE instituciones_nacionales DROP COLUMN tipoInstitucion; ALTER TABLE instituciones_nacionales DROP COLUMN categoria;
-- Add the "id" column and make it the primary key SELECT fn_db_add_column('gluster_volume_bricks', 'id', 'UUID'); UPDATE gluster_volume_bricks set id = uuid_generate_v1(); ALTER TABLE gluster_volume_bricks DROP CONSTRAINT pk_gluster_volume_bricks; ALTER TABLE gluster_volume_bricks ADD CONSTRAINT pk_gluster_volume_bric...
-- Select within select -- 1. List each country name where the population is larger than 'Russia' SELECT name FROM world WHERE population > (SELECT population FROM world WHERE name='Russia'); -- 2. Show the countries in Europe with a per capita GDP greater than 'United Kingdom' SELECT name FROM world W...
SELECT product_dim.uk_india_size AS size_ordered, COUNT(order_item_unit_s1_fact.order_external_id) AS order_count FROM bigfoot_external_neo.sp_product__product_attribute_hive_dim product_dim INNER JOIN bigfoot_external_neo.scp_oms__order_item_unit_s1_365_final_fact order_item_unit_s1_fact ON order_item_unit_s1_fact.or...
ALTER TABLE `characters` MODIFY `vitality_points` mediumint unsigned NOT NULL DEFAULT 0;
INSERT INTO Equipment (name) VALUES ('rack'), ('dumbells'), ('gymBall'), ('bar'), ('plates'), ('bench'), ('benchPressRack'), ('cableMachine'), ('cableRow'), ('dipsBar'), ('pullupBar'), ('pulldownMachine'...
-- -- PostgreSQL database dump -- -- Dumped from database version 13.1 -- Dumped by pg_dump version 13.1 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', fal...
-- See: https://bugzilla.mozilla.org/show_bug.cgi?id=1008734 DROP TABLE IF EXISTS `features`; DROP TABLE IF EXISTS `appsupport`; DROP TABLE IF EXISTS `applications_versions`; ALTER TABLE categories DROP COLUMN application_id; ALTER TABLE `file_uploads` DROP FOREIGN KEY `compat_with_appver_id_refs_id_3747a309`, DROP...
-- +goose Up CREATE TABLE house_events ( id int(10) UNSIGNED NOT NULL AUTO_INCREMENT, house_id int(10) UNSIGNED NOT NULL, name VARCHAR(255), candidate_datetime DATETIME DEFAULT NULL, shop_id VARCHAR(255) DEFAULT NULL, ...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 25-02-2018 a las 15:17:43 -- Versión del servidor: 10.1.28-MariaDB -- Versión de PHP: 7.0.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
create table DocCategoryUseCount( secid int NOT NULL, userid int not null, count int NOT NULL ) / create table WorkflowUseCount( wfid int NOT NULL, userid int not null, count int NOT NULL ) /
CREATE TABLE ( userId SERIAL NOT NULL PRIMARY KEY, firstName VARCHAR(100) NOT NULL, lastName VARCHAR(100) NOT NULL, email VARCHAR(100) NOT NULL UNIQUE, userPassword VARCHAR(100) NOT NULL ); CREATE TABLE category ( categoryId SERIAL NOT NULL PRIMARY KEY, categoryName VARCHAR(50) NOT NULL ); CREATE TABLE public...
DROP DATABASE IF EXISTS mldnoauthclient; CREATE DATABASE mldnoauthclient CHARACTER SET UTF8 ; USE mldnoauthclient ; CREATE TABLE client ( clid BIGINT AUTO_INCREMENT , client_id VARCHAR(200) , client_secret VARCHAR(200) , CONSTRAINT pk_clid PRIMARY KEY(clid) ) ; -- 编写测试数据 INSERT INTO client(client_id...
DROP PROCEDURE CPI.CHECK_ITEM_DATES; CREATE OR REPLACE PROCEDURE CPI.Check_Item_Dates ( p_line_cd IN GIPI_WPOLBAS.line_cd%TYPE, p_subline_cd IN GIPI_WPOLBAS.subline_cd%TYPE, p_iss_cd IN GIPI_WPOLBAS.iss_cd%TYPE, p_issue_yy IN GIPI_WPOLBAS.issue_yy%TYPE, p_pol_seq_no IN GIPI_WPOLBAS.pol_seq_no%TYPE, p_ren...
#--- !Ups CREATE TABLE doctor( first_name VARCHAR, last_name VARCHAR, specialist VARCHAR, address VARCHAR, designation VARCHAR, phone_no bigint ); INSERT INTO doctor (first_name, last_name, specialist, address, designation, phone_no) VALUES ('Deepak', 'Chaurasia', 'ENT', 'Noida', 'MD', 8130440808); INSERT...
create table downloads ( id integer primary key, provider text, provider_country text, sku text, developer text, title text, version text, product_type_identifier text, units integer, developer_proceeds text, begin_date text, end_date text, customer_currency text, ...
use moviedb; CREATE TABLE customers_backup( id INT NOT NULL AUTO_INCREMENT, firstName VARCHAR(50) DEFAULT '', lastName VARCHAR(50) DEFAULT '', ccId VARCHAR(20) DEFAULT '', address VARCHAR(200) DEFAULT '', email VARCHAR(50) DEFAULT '', password VARCHAR(20) DEFAULT '', PRIMARY KEY(id), FOREIGN KEY(ccId) REFERENCES credi...
SELECT * FROM mydb.post ORDER BY CREATED_AT;
with pro as ( select 'Ikura' as product_name), ie as ( select e.employee_id as id from eshop.products as p join eshop.order_details as od on od.product_id = p.product_id and p.product_name ~ ( select * from pro) join eshop.orders as o on o.order_id = od.order_id join eshop.employees as e on e.employee_id = ...
/*td:1328 */ update CRM_Customize set row1col1=0 where row1col1=213 / update CRM_Customize set row1col2=0 where row1col2=213 / update CRM_Customize set row1col3=0 where row1col3=213 / update CRM_Customize set row1col4=0 where row1col4=213 / update CRM_Customize set row1col5=0 where row1col5=213 / update CRM_Customi...
CREATE TABLE niveles_general_tipo_formacion_niveles_cine ( id SERIAL PRIMARY KEY, idNivelFormacionGeneral BIGINT REFERENCES niveles_formacion_general(id), idTipoFormacion BIGINT NOT NULL REFERENCES tipos_formacion(id), idNivelFormacionCine BIGINT NOT NULL REFERENCES niveles_formacion_cine(id) );
CREATE OR REPLACE PACKAGE ORD.ORD_API AS /* $pkg: ORD.ORD_API */ /* $obj_desc: *_add: insert row into table *. Could return id of new row. $obj_desc: *_edit: update row into table *. Object have always one id. first, old data with amnd_state = [I]nactive $obj_desc: *_edit: inserted as row with link to new r...
SELECT rating_time AS date, rating_num AS rating FROM rating WHERE rating_num >= (SELECT AVG(rating_num) FROM rating) ORDER BY rating_num;
insert into tbl_reminders (account_id, reminder_name, subject_text, state_id, group_id, group_flag) values (%1, '%2', '%3', %4, %5, %6)
delimiter // DROP PROCEDURE IF EXISTS ShowCurrentAirPollution // CREATE PROCEDURE ShowCurrentAirPollution(IN cityname varchar(200)) BEGIN SELECT Pm2_5, AQI, Quality FROM Pollution WHERE City_name = cityname ORDER BY Time LIMIT 1; END// delimiter ;
drop database if exists playareadb; create database playareadb; use playareadb; -- -- Table structure for table `UserGameDetails` -- DROP TABLE IF EXISTS `UserGameDetails`; CREATE TABLE `UserGameDetails`( `userId` int PRIMARY KEY, `username` text(20), balance int ); -- -- Dumping data for table `UserGameD...
DROP TABLE IF EXISTS TB_HEROS; CREATE TABLE TB_HEROS ( ID INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY NOT NULL, NAME TEXT NOT NULL, POWER TEXT NOT NULL ); --CREATE INSERT INTO TB_HEROS (NAME, POWER) VALUES ('Flash', 'Speeding'), ('Aquaman', 'Talk To Fishes'); --READ SELECT * FROM TB_HEROS; --READ WITH NAME SE...
-- -- FUO_DPM_DIR (Directory) -- CREATE OR REPLACE DIRECTORY FUO_DPM_DIR AS '/data02/unit_offer/dic_payment_method/process_dir';
create database db_construindo_a_nossa_vida; use db_construindo_a_nossa_vida; create table tb_categoria ( id bigint auto_increment, descricao varchar (255) not null, tipo varchar (255), disponivel boolean, primary key (id) ); insert tb_categoria(descricao, tipo, disponivel) values ("Madeira", "Carvalho", true); inser...
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50528 Source Host : 127.0.0.1:3306 Source Database : hotel Target Server Type : MYSQL Target Server Version : 50528 File Encoding : 65001 Date: 2017-05-29 16:52:33 */ SET FOREIGN_KEY_CHECKS=0; -...
-- phpMyAdmin SQL Dump -- version 3.2.3 -- http://www.phpmyadmin.net -- -- 호스트: localhost -- 처리한 시간: 13-01-16 18:45 -- 서버 버전: 5.1.41 -- PHP 버전: 5.2.12 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESUL...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50720 Source Host : localhost:3306 Source Database : djmall Target Server Type : MYSQL Target Server Version : 50720 File Encoding : 65001 Date: 2020-08-30 17:03:50 */ SET FOREIGN_KEY_CHECKS=0; -- --...
CREATE TABLE region ( id SERIAL NOT NULL PRIMARY KEY, grid_spacing NUMERIC NOT NULL, max_latitude NUMERIC NOT NULL, max_longitude NUMERIC NOT NULL, min_latitude NUMERIC NOT NULL, min_longitude NUMERIC NOT NULL, name VARCHAR(255) NOT NULL UNIQUE ); CREATE TABLE data ( id SERIAL NOT NULL PRIMARY KEY, ...
DECLARE v_customdata NCLOB; v_proccessorcode NVARCHAR2(255); v_casedata CLOB; v_casetypedata NCLOB; v_result NUMBER; v_caseid NUMBER; BEGIN v_proccessorcode := ''; v_caseid := :CaseId; BEGIN SELECT ce.col_customdata.getClobVal(), Ct.COL_RETCUSTDATAPRO...
PROMPT script is completed successfully
CREATE TABLE vilkar_vurdering ( id UUID PRIMARY KEY, behandling_id UUID REFERENCES behandling(id), resultat VARCHAR NOT NULL, type VARCHAR NOT NULL, begrunnelse VARCHAR, unntak VARCHAR, opprettet...
-- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); you ma...
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 08 Nov 2019 pada 14.32 -- Versi server: 10.1.32-MariaDB -- Versi PHP: 5.6.36 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
CREATE TABLE IF NOT EXISTS customer ( id BIGINT NOT NULL PRIMARY KEY, firstName VARCHAR(11) NOT NULL, middleInitial VARCHAR(1), lastName VARCHAR(20) NOT NULL, address VARCHAR(45) NOT NULL, city VARCHAR(16) NOT NULL, state CHAR(2) NOT NULL, ...
UPDATE license set cversion = '4.100.1205' /
USE projectdb; CREATE TABLE IF NOT EXISTS studenttab( id INT PRIMARY KEY AUTO_INCREMENT, sname VARCHAR(20), scourse VARCHAR(30), sfee INT); SELECT * FROM studenttab; DROP TABLE studenttab;