sql
stringlengths
6
1.05M
SELECT pointInPolygon((106.677085876465,10.7744951248169), [(106.667161868227,10.7675128359024),(106.667165727127,10.7675059912261),(106.667170817563,10.7674904752629),(106.667229225265,10.7672278502066),(106.667231193621,10.7672115129572),(106.667229912029,10.7671951075415),(106.667225430503,10.767179274157),(106.6672...
<reponame>UAMS-DBMI/PosdaTools -- Name: GetSsVolume -- Schema: posda_files -- Columns: ['for_uid', 'study_instance_uid', 'series_instance_uid', 'sop_class_uid', 'sop_instance_uid'] -- Args: ['sop_instance_uid'] -- Tags: ['Structure Sets', 'sops', 'LinkageChecks'] -- Description: Get Structure Set Volume -- -- select...
#standardSQL WITH lines_by_basket_id AS ( SELECT basket_id AS id, ARRAY_AGG( STRUCT( id AS basket_line_id, basket_line, creation_time, cancelled, product_id, ...
ALTER TABLE snapshots ALTER COLUMN workspace_id DROP NOT NULL;
<reponame>sreekanth370/presto -- database: presto; groups: window; select orderkey, suppkey, discount, rank() over (partition by suppkey) from tpch.tiny.lineitem where partkey = 272
-- @Description Ensures that alter table during reindex operations on GiST index is ok -- DELETE FROM reindex_heap_gist WHERE id < 128; 1: BEGIN; 1: REINDEX index idx_gist_reindex_heap; 2&: alter table reindex_heap_gist alter column owner type char(255); 1: COMMIT; 2<: 2: COMMIT; 3: insert into reindex_heap_gist (i...
-- timestamp check CREATE TABLE timestamptmp (a timestamp); \copy timestamptmp from 'data/timestamp.data' SET enable_seqscan=on; SELECT count(*) FROM timestamptmp WHERE a < '2004-10-26 08:55:08'; SELECT count(*) FROM timestamptmp WHERE a <= '2004-10-26 08:55:08'; SELECT count(*) FROM timestamptmp WHERE a = '200...
<gh_stars>0 -- Convert schema 'upgrades/Tapper-Schema-ReportsDB-2.010030-SQLite.sql' to 'upgrades/Tapper-Schema-ReportsDB-2.010031-SQLite.sql':; BEGIN; ALTER TABLE reportsection ADD COLUMN simnow_svn_version VARCHAR(255); ALTER TABLE reportsection ADD COLUMN simnow_version VARCHAR(255); ALTER TABLE reportsection AD...
declare @Version int select @Version = [Version] from [dbo].[SnapshotStore] where Id = @Id if (@Version is null) select [Id], [Version], [EventType], [EventEnvelope], [SequenceNumber], [DateRegistered] from [dbo].[EventStore] where Id = @Id order by [Version] else select [Id], ...
<gh_stars>1-10 DROP TABLE IF EXISTS `##DBNAME##_acl_groups`;(EOL) CREATE TABLE `##DBNAME##_acl_groups` ( `group_id` mediumint(8) unsigned NOT NULL default '0', `forum_id` mediumint(8) unsigned NOT NULL default '0', `auth_option_id` mediumint(8) unsigned NOT NULL default '0', `auth_role_id` mediumint(8) unsigned...
<gh_stars>0 -- @testpoint:opengauss关键字clob(非保留),作为数据库名 --关键字不带引号-成功 drop database if exists clob; create database clob; --清理环境 drop database clob; --关键字带双引号-成功 drop database if exists "clob"; create database "clob"; --清理环境 drop database "clob"; --关键字带单引号-合理报错 drop database if exists 'clob'; create database 'clob';...
<reponame>anjaspangestu/CA-VI -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 08 Des 2019 pada 02.02 -- Versi server: 10.4.6-MariaDB -- Versi PHP: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00...
CREATE DATABASE gradesData; use gradesData; CREATE TABLE IF NOT EXISTS grades ( `id` int AUTO_INCREMENT, `Last_name` VARCHAR(9) CHARACTER SET utf8, `First_name` VARCHAR(16) CHARACTER SET utf8, `SSN` VARCHAR(21) CHARACTER SET utf8, `Test1` NUMERIC(3,1), `Test2` NUMERIC(3,1), `Test3` NUMERIC(...
CREATE OR REPLACE VIEW `cv`.`vwSeedRoles` AS SELECT 'Roles' AS `TABLE`, CONCAT('[', '\'id\'=>\'', `id`, '\',', '\'role\'=>\'', `role`, '\',', '\'created_at\'=>\'', NOW(), ...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Nov 21, 2017 at 10:13 AM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
<reponame>Akshaychdev/Docker-k8s-practice<filename>postgres_files/car.sql create table car ( id BIGSERIAL NOT NULL PRIMARY KEY, make VARCHAR(100) NOT NULL, model VARCHAR(100) NOT NULL, price NUMERIC(19, 2) NOT NULL ); insert into car (id, make, model, price) values (1, 'Pontiac', 'Bonneville', '43596.75'); insert i...
<reponame>s911415/ntut-db-project-F17u ALTER TABLE `discount` CHANGE `discount_percent` `value` FLOAT(11,2) NOT NULL;
<reponame>hmcts/am-lib delete from access_management where service_name = 'cmc-test' and resource_type ='case-test' and resource_name = 'claim-test'; delete from roles where role_name ='caseworker-test'; delete from roles where role_name ='caseworker-test1'; delete from resources where service_name = 'cmc-test' and res...
-- -------------------------------------------------------- -- Host: localhost -- Server version: 10.1.38-MariaDB - mariadb.org binary distribution -- Server OS: Win64 -- HeidiSQL Version: 11.0.0.5919 -- ------------------------------------------...
<reponame>adriandarian/CSE177 SELECT l_receiptdate FROM lineitem, orders, customer WHERE l_orderkey = o_orderkey AND o_custkey = c_custkey AND o_orderdate > '1995-03-01' AND o_orderdate < '1996-03-01'
SELECT student_id, MIN(course_id) AS course_id, grade FROM Enrollments WHERE (student_id, grade) IN (SELECT student_id, MAX(grade) FROM Enrollments GROUP BY student_id) GROUP BY student_id ORDER By student_id;
<reponame>auliahakim20/kshop -- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 08, 2021 at 03:43 AM -- Server version: 10.4.18-MariaDB -- PHP Version: 7.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!4010...
create table users ( id integer, name text ); create table places ( id integer, description text );
<gh_stars>1-10 alter table "public"."users" rename to "user";
-- file:alter_table.sql ln:937 expect:true create table test1 as select * from atacc1
<reponame>EmanueleMeazzo/SQL-Code-snippets<filename>Extended Events/Capture Plans with warning.sql --Source https://sqlperformance.com/2015/10/extended-events/capture-plan-warnings?utm_source=ebook&utm_medium=pdf&utm_term=Michael&utm_content=5&utm_campaign=ebook -- Define event session CREATE EVENT SESSION [Interestin...
insert into users values (1, 'Alex', 1); insert into users values (2, 'Bob', 1); insert into users values (3, 'John', 0); insert into users values (4, 'Harry', 0); insert into users values (5, 'Smith', 1);
--============================================================================== -- GPI - <NAME> -- Desc: check Services and tns Settings for the services -- Date: 09.2013 -- --============================================================================== set verify off set linesize 130 pagesize 300 ttitle 'serv...
<reponame>getlantern/stellar-go<filename>services/horizon/internal/test/scenarios/kahuna-core.sql running recipe recipe finished, closing ledger ledger closed -- -- PostgreSQL database dump -- -- Dumped from database version 9.6.6 -- Dumped by pg_dump version 9.6.6 SET statement_timeout = 0; SET lock_timeout = 0; SET...
DROP TABLE IF EXISTS city; DROP TABLE IF EXISTS country;
INSERT INTO T_STUDENT (F_ID, F_FIRSTNAME, F_LASTNAME, F_BIRTHDATE) VALUES (hibernate_sequence.nextval, 'SAMI', 'KARAM', null); INSERT INTO T_STUDENT (F_ID, F_FIRSTNAME, F_LASTNAME, F_BIRTHDATE) VALUES (hibernate_sequence.nextval, 'GEORGES', 'KHOURY', null); INSERT INTO T_STUDENT (F_ID, F_FIRSTNAME, F_LASTNAME, F_BIRT...
<reponame>authntcG/cucikendaraan -- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 04 Jun 2021 pada 14.07 -- Versi server: 10.4.18-MariaDB -- Versi PHP: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 S...
<gh_stars>1-10 #创建数据库 CREATE DATABASE IF NOT EXISTS `cmsdemo` DEFAULT CHARACTER SET utf8; #切换数据库 USE `cmsdemo`; #user表 DROP TABLE IF EXISTS `user`; CREATE TABLE `user`( `login_id` VARCHAR(20) NOT NULL COMMENT '登录ID', `role` VARCHAR(10) NOT NULL COMMENT '角色', `password` VARCHAR(100) NOT NULL COMMENT '密码', `crea...
<gh_stars>1-10 /* Navicat Premium Data Transfer Source Server : mysql5.7 Source Server Type : MySQL Source Server Version : 50729 Source Host : 192.168.56.10:3306 Source Schema : db-yunke Target Server Type : MySQL Target Server Version : 50729 File Encoding : 65001 ...
<filename>applications/credhub-api/src/main/resources/db/migration/mysql/V25_2__relate_named_secrets_to_named_secret_table.sql ALTER TABLE named_secret ADD COLUMN secret_name_uuid VARBINARY(16); UPDATE named_secret SET named_secret.secret_name_uuid = ( SELECT uuid FROM secret_name WHERE secret_name...
SELECT * FROM WEBHOOK_CONFIGS ORDER BY INSERT_DATETIME %s;
<filename>schema/v2.4.0.cql -- Backup CREATE TABLE validate_backup_run_progress ( cluster_id uuid, task_id uuid, run_id uuid, dc text, host text, location text, manifests int, scanned_files int, broken_snapshots list<text>, missing_files int, orphaned_files int, orphaned...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 21-03-2018 a las 06:40:41 -- Versión del servidor: 10.1.31-MariaDB -- Versión de PHP: 7.0.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone...
<filename>SQL/latest_patient_mob_no.sql<gh_stars>0 -- MySQL dump 10.13 Distrib 8.0.17, for Win64 (x86_64) -- -- Host: localhost Database: latest -- ------------------------------------------------------ -- Server version 8.0.17 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHA...
<reponame>EL-BID/nexso CREATE PROCEDURE [dbo].[dnn_GetDesktopModulePermissionsByPortalDesktopModuleID] @PortalDesktopModuleID int AS SELECT * FROM dbo.dnn_vw_DesktopModulePermissions WHERE PortalDesktopModuleID = @PortalDesktopModuleID
<reponame>EntityAdam/HappyStorage<gh_stars>1-10 USE [HappyStorage] GO /****** Object: Table [dbo].[Tenants] Script Date: 6/23/2019 12:44:38 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Tenants]( [Id] [int] IDENTITY(1,1) NOT NULL, [CustomerNumber] [varchar](100) NOT NULL, [Un...
-- MySQL dump 10.13 Distrib 5.7.30, for Linux (x86_64) -- -- Host: localhost Database: fiu -- ------------------------------------------------------ -- Server version 5.7.30-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RE...
-- -- PostgreSQL database dump -- -- Dumped from database version 13.1 -- Dumped by pg_dump version 13.2 -- Started on 2021-04-09 11:29:11 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_catalo...
<reponame>sadheerajk/ci_crud<filename>crud.sql -- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 07, 2019 at 01:54 PM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
### Evaluation of maternal relationships using the mother-baby linkage from EHR ## Overall performance query for relationship = mother select *, tp/(tp+fn) as sensitivity, tp/(tp+fp) as ppv from ( # True Positives (TP) select count(distinct mrn, relation_mrn) as tp from database.ACTUAL_AND_INF_REL_CLEAN_FINAL jo...
-- 1. List the following details of each employee: employee number, last name, first name, gender, and salary. select employees.emp_no, employees.last_name, employees.first_name, employees.gender, salaries.salary from employees join salaries on employees.emp_no = salaries.emp_no; -- 2. List employees who were hired in...
<filename>src/6_get_array_array.sql create table users(id int primary key, json text); insert into users values(1, '[[1,2],["A","B"]]'); insert into users values(2, '[[3],["C"]]'); insert into users values(3, '[]'); select json_extract(json, '$[1][0]') from users;
library ANCDT34 using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' include ANCConfig called Config include ANCConcepts called Cx include ANCDataElements called PatientData include ANCContactDataElements called ContactData context Patient /* (((((((((((((((Age" ≤ 17 years) OR ("Fetal presentation" = "...
define rwl_oe=&&1. define rwl_at=&&2. define rwl_aq=&&3. create or replace synonym customers for &&rwl_oe..customers; create or replace synonym order_items for &&rwl_oe..order_items; create or replace synonym orders for &&rwl_oe..orders; create or replace synonym warehouses for &&rwl_oe..warehouses; create or replace ...
select aut.name, l.status, count(*) as num from public.authors as aut, public.articles as art, public.log as l where aut.id = art.author and l.path like '/article/%'||art.slug group by aut.name, l.status order by num desc;
<reponame>ravi115/JDBC-Tutorials -- create a schema drop schema if exists `trigger_demo`; create schema `trigger_demo`; use `trigger_demo`; -- create a table called account drop table if exists `account`; create table `account` ( `id` int not null, `first_name` varchar(256) default null, `last_name` va...
# 创建数据库表 CREATE TABLE `account_info` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `account_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '户 主姓名', `account_no` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '银行 卡号', `account_password` varchar(100) CHARACTER SET ...
<filename>data/machines.sql DROP TABLE IF EXISTS machines; CREATE TABLE machines( machine_number INTEGER(3) NOT NULL ,version_group_id INTEGER(2) NOT NULL ,item_id INTEGER(3) NOT NULL ,move_id INTEGER(3) NOT NULL ,PRIMARY KEY(machine_number,version_group_id) ); INSERT INTO machine...
<reponame>jsdelivrbot/study-1 -- data generated by /usr/local/bin/datafiller version 2.0.0 (r792 on 2014-03-23) for postgresql -- fill table order_line (2) \echo # filling table order_line (2) COPY order_line (order_line_id,purchase_order_id) FROM STDIN (ENCODING 'utf-8'); 1 purchase 2 purchase \. -- fill table plan...
<filename>persistence/migrations/20181224162654-addShoeiX12ModelAlias.sql -- +migrate Up update product_model_aliases set is_for_display = false where manufacturer = 'Shoei' and model = 'X Spirit II'; insert into product_model_aliases (manufacturer, model, model_alias, is_for_display) values ('Shoei', 'X Spirit II', '...
------------------------------------------------------------ -- Starting new sql scripts for release 15.2.1 with this one ------------------------------------------------------------ --------------------------------------------------------------- -- RQ: GPaaS - Make the "Time slices" configurable for services --------...
<filename>webofneeds/won-docker/image/postgres/default_init.sql create database won_node; create database won_owner; grant all privileges on database won_node to won; grant all privileges on database won_owner to won;
<reponame>dmukadar/blog-tuts<filename>database/blog.sql -- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Oct 22, 2015 at 12:11 PM -- Server version: 5.5.27 -- PHP Version: 5.4.7 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SE...
<gh_stars>0 create database siscontur; use siscontur; create table Excursao( id_excursao integer auto_increment, codigo_registro varchar(8), nome_responsavel varchar(60), cpf_responsavel varchar(14), numero_turistas integer, tipo_transporte varchar(35), id_chegada integer, foreign ke...
<reponame>gustavocamalionti/cursos-e-linguagens /*Relembrando alguns comandos...*/ use cursoemvideo; describe cursos; select*from gafanhotos; select*from cursos; /*inserindo registros*/ insert into cursos values (default, 'HTML4','Curso de HTML5', '40', '37', '2014'), (default, 'Algoritmos','Lógica de Programação', '...
<gh_stars>0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_E...
<gh_stars>0 INSERT INTO `weightlifting` (`first_name`, `last_name`,`bench_press`,`clean_andj`,`snatch`) VALUES('Mark', 'Tinman', 140, 110, 80);
<reponame>NenovaRositsa/Databases-MS-SQL-Server SELECT e.EmployeeID, e.FirstName, e.LastName, d.[Name] AS [DepartmentName] FROM Employees AS e INNER JOIN Departments AS d ON e.DepartmentID = d.DepartmentID WHERE d.[Name] = 'Sales' ORDER BY e.EmployeeID
<reponame>eugen0/Comp_result_open_data<filename>utility/db/db_create_tab_comp_name.sql CREATE TABLE Companie ( id SERIAL PRIMARY KEY, CodFiscal varchar (100) NOT NULL UNIQUE, NUME TEXT NOT NULL, Stare BOOLEAN, TVA BOOLEAN ); CREATE TABLE CodCaen ( codCaen_id SERIAL NOT NULL PRIMARY KEY, Caen varchar(100), Caen...
alter table "public"."socle_competency" add column "full_rank" text not null;
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Nov 19, 2020 at 05:57 PM -- Server version: 5.7.28 -- PHP Version: 7.2.24-0ubuntu0.18.04.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:0...
<filename>employees.sql<gh_stars>0 -- salario medio de la gente que trabaja de senior engineer USE employees; SELECT AVG(S.salary), T.title FROM salaries AS S INNER JOIN titles AS T ON S.emp_no = T.emp_no WHERE T.title = "Senior Engineer"; -- SUBQUERY: SELECT adentro de otro SELECT SELECT emp_no FROM employees WHERE ...
<reponame>stts-se/wikispeech-manuscriptor PRAGMA foreign_keys = ON; --- Orders sentences (chunks) according to the least frequent word (chunkfeat) in the sentence (the word with the highest wordfreq.id) SELECT MIN(wordfreq.freq), chunk.text, source.name FROM chunk JOIN chunk_chunkfeat on chunk_chunkfeat.chunk_id = c...
#设置客户端连接的编码 SET NAMES UTF8; #丢弃数据库 DROP DATABASE IF EXISTS tedu; #创建数据库 CREATE DATABASE tedu CHARSET=UTF8; #进入该数据库 USE tedu; #创建保存部门数据的表 CREATE TABLE dept( did SMALLINT PRIMARY KEY AUTO_INCREMENT, dname VARCHAR(8) UNIQUE ); #插入数据 INSERT INTO dept VALUES(10,'研发部'); INSERT INTO dept VALUES(20,'市场部'); INSERT INTO dep...
<gh_stars>1-10 --Variant 2 --a) Complete CREATE TABLE Production.LocationHst( [ID] [int] IDENTITY(1,1) PRIMARY KEY, [Action] [nchar](6) NOT NULL CHECK(Action IN('insert', 'update', 'delete')), [ModifiedDate] [datetime] NOT NULL, [SourceID] [int] NOT NULL, [UserName] [nvarchar](100)) GO ---DROP TABLE Produ...
<gh_stars>1-10 -- ---------------------------- -- Table structure for catches -- ---------------------------- DROP TABLE IF EXISTS `catches`; CREATE TABLE `catches` ( `id` int(11) NOT NULL AUTO_INCREMENT, `pokemon_id` int(11) NOT NULL, `catch_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMEST...
-- lists all shows from hbtn_0d_tvshows_rate by their rating. -- Each record should display: tv_shows.title - rating sum -- Results must be sorted in acending order by the rating -- The database name will be passed as an argument of the mysql command SELECT tv_shows.title, SUM(tv_show_ratings.rate) AS rating FROM tv_s...
<gh_stars>1-10 CREATE TABLE oauth_client_details ( client_id varchar(48) NOT NULL , resource_ids varchar(256) DEFAULT NULL, client_secret varchar(256) DEFAULT NULL, scope text DEFAULT NULL, authorized_grant_types varchar(256) DEFAULT NULL, web_server_redirect_uri varchar(256) DEFAULT NULL, authorities v...
create table scheduling_template ( id integer generated always as identity, revision integer not null default 0, model_id integer not null, description text not null, simulation_arguments jsonb not null, constraint scheduling_template_synthetic_key primary key (id) ); comment on table scheduling_temp...
<gh_stars>10-100 {% macro select_stats_overview(alias, date_agg, cluster_by='') -%} {{- config( alias=alias, cluster_by=cluster_by, unique_key='timestamp' ) -}} WITH overall AS ( SELECT {{ date_agg }} AS timestamp ...
<gh_stars>1000+ -- lazy-load a number of SQL columns that are just for display -- C_Invoice_Candidate.Bill_BPartner_Name -- 2018-06-04T10:27:28.002 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsLazyLoading='Y',Updated=TO_TIMESTAMP('2018-06-04 10:27:27','YYYY-MM-DD HH24:MI:SS...
-- drop futurelab database if exits DROP DATABASE FutureLab if EXISTS; -- create futurelab database if exits CREATE DATABASE FutureLab; -- create users tables -- users table CREATE TABLE `futurelab`.`users` ( `userId` INT NOT NULL AUTO_INCREMENT , `email` VARCHAR(30) NOT NULL , `password` VARCHAR(30) NOT NULL , `grad...
<reponame>JadenMcElvey/learning-library<filename>data-management-library/security/database-vault/dir-dv-advanced-labs/DV_Adv_Lab_02/create_command_rules.sql set echo on spool 02_Create_Command_Rules_and_Rule_Sets.out exec dvsys.dbms_macadm.add_auth_to_realm(realm_name=>'EMPLOYEESEARCH_DATA',grantee=>'dba_debra'); exe...
-- MySQL dump 10.13 Distrib 5.5.29, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: 710567_proj -- ------------------------------------------------------ -- Server version 5.5.29-0ubuntu0.12.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS...
<reponame>JavaQualitasCorpus/cayenne-3.0.1<gh_stars>0 DROP PROCEDURE IF EXISTS cayenne_tst_out_proc;
BEGIN TRANSACTION; CREATE TEMPORARY TABLE instance_info_caches_backup ( created_at DATETIME, updated_at DATETIME, deleted_at DATETIME, deleted BOOLEAN, id INTEGER NOT NULL, network_info TEXT, instance_id VARCHAR(36), PRIMARY KEY (id) ); INSERT...
INSERT INTO `maiguo2`.`y5g_access_node`(`id`, `module`, `controller`, `action`, `name`, `parent_id`, `create_time`, `update_time`) VALUES (32, 'index', 'setting', 'specialedititemlist', '特殊修改', 19, 0, 0); INSERT INTO `maiguo2`.`y5g_access_node`(`id`, `module`, `controller`, `action`, `name`, `parent_id`, `create_time`,...
<gh_stars>0 delete from "ImportProducts"; delete from "Imports";
-- Verify nz-buildings:buildings_reference/functions/swamp_polygons on pg BEGIN; SELECT has_function_privilege('buildings_reference.swamp_polygons_delete_by_external_id(integer)', 'execute'); SELECT has_function_privilege('buildings_reference.swamp_polygons_insert(integer, varchar)', 'execute'); SELECT has_function...
<filename>movies/6.sql<gh_stars>0 -- Write a SQL query to determine the average rating of all movies released in 2012. SELECT AVG(rating) FROM ratings WHERE movie_id IN ( SELECT id FROM movies WHERE year = 2012 );
<gh_stars>0 INSERT INTO persediaan (id_transaksi, id_barang, jumlah, harga) VALUES (115968,517,45,0); INSERT INTO persediaan (id_transaksi, id_barang, jumlah, harga) VALUES (115968,575,582,0); INSERT INTO persediaan (id_transaksi, id_barang, jumlah, harga) VALUES (115968,628,205,0); INSERT INTO persediaan (id_transaksi...
<gh_stars>0 set database sql syntax PGS true; create table tasks ( id integer not null, exec_service_id integer not null, facility_id integer not null, schedule date not null, recurrence integer not null, delay integer not null, status varchar(16) not null, start_time date, end_t...
<gh_stars>0 ALTER TABLE `fake_email` MODIFY `message` longtext NOT NULL, MODIFY `created` datetime(6) NOT NULL, MODIFY `modified` datetime(6) NOT NULL;
<gh_stars>1-10 -- Some light queries investigating the relationship of events over time. CREATE OR REPLACE FUNCTION quarter_hour (to_convert DATETIME) RETURNS DATETIME LANGUAGE SQL DETERMINISTIC SQL SECURITY INVOKER COMMENT 'Returns the same datetime but adjusted to nearest 15min boundary' RETURN str_to_date( ...
create index i_speedup on t1 using btree(val);
-- @testpoint:opengauss关键字fortran(非保留),作为字段数据类型(合理报错) --前置条件 drop table if exists explain_test cascade; --关键字不带引号-合理报错 create table explain_test(id int,name fortran); --关键字带双引号-合理报错 create table explain_test(id int,name "fortran"); --关键字带单引号-合理报错 create table explain_test(id int,name 'fortran'); --关键字带反引号-合理报错 cr...
/* Navicat Premium Data Transfer Source Server : tencentyun_mysql Source Server Type : MySQL Source Server Version : 50736 Source Schema : hot_list Target Server Type : MySQL Target Server Version : 50736 File Encoding : 65001 Date: 08/02/2022 09:41:04 */ SET NAMES utf8mb4; SE...
<reponame>king052188/POSManagerV1 CREATE DATABASE IF NOT EXISTS `cdg_pos` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `cdg_pos`; -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: 21.21.16.56 Database: cdg_pos -- ------------------------------------------------------ -- Server version 5.5.5-10.1.21...
/* Navicat MySQL Data Transfer Source Server : mysql Source Server Version : 80023 Source Host : localhost:3306 Source Database : tdr Target Server Type : MYSQL Target Server Version : 80023 File Encoding : 65001 Date: 2021-09-17 11:24:27 */ SET FOREIGN_KEY_CHECKS=0; -- ---------...
CREATE TABLE IF NOT EXISTS agents ( agentcode INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, agentname STRING, workingarea STRING, commission DOUBLE, phone STRING, country STRING ); CREATE TABLE IF NOT EXISTS customers ( custcode INTEGER NOT NULL ...
<reponame>amartinn/SoftUni<filename>C# DB May 2020/MS SQL/Exercises/Table Relations/Table Relations.sql /* 1 */ CREATE DATABASE [Table Relations] USE [Table Relations] CREATE TABLE Passports ( PassportID INT PRIMARY KEY NOT NULL, PassportNumber NVARCHAR(8) NOT NULL) CREATE TABLE Persons ( PersonID INT PRIMARY KEY IDE...
<filename>SQL/Advanced Join/Placements.sql SELECT S.NAME FROM STUDENTS S, PACKAGES SP, FRIENDS F, PACKAGES FP WHERE S.ID = SP.ID AND S.ID = F.ID AND F.FRIEND_ID = FP.ID AND SP.Salary < FP.Salary ORDER BY FP.Salary
select c.cnt as max_min_counts, c.drug_name -- finds the number and the names of the drugs from --από ( select count (mf.drug_id) as cnt , d.name as drug_name -- finding the sum of drugs and names from medicalfolders mf, drugs d -- from tables mf, d where mf.drug_id=d.id -- having the drugs from the mf table matc...
<reponame>atombrella/Dawa<gh_stars>10-100 DROP TABLE IF EXISTS vask_postnumre CASCADE; CREATE TABLE vask_postnumre( nr smallint NOT NULL, navn text NOT NULL, virkning tstzrange NOT NULL );
<reponame>bwlynch/FbScraper -- :name get_sites_to_discover :many select * from Site ORDER BY last_crawl_at ASC