본문 바로가기

개발 관련 공부139

Advanced SQL 이 포스트는 2021.12~2022.09 기간동안 벨로그에 작성한 글을 티스토리에 옮겨 적은 것입니다. Advanced Aggregation Feature Ranking select ID, rank() over (order by GPA desc) as s_rank from student_grades order by 절을 적용할 수 있다. select ID, rank() over (order by GPA desc) as s_rank from student_grades order by s_rank gap을 없애고 싶으면 dense_rank 사용 select ID, dense_rank() over (order by GPA desc) as s_rank from student_grades row number 쓰고.. 2022. 9. 12.
DatabaseEssentials 이 포스트는 2021.12~2022.09 기간동안 벨로그에 작성한 글을 티스토리에 옮겨 적은 것입니다. Storage and Indexing Oracle에서 데이터베이스는 file에 저장된 information로 구성되고 instance에 의해 접근됨. Instance: data file과 상호작용하는 shared memory area and set of processes Table Spaces 데이터베이스는 table space라고 불리는 한 개 이상의 logical storage unit으로 구성된다. 각 table space는 data file이라 불리는 physical space로 구성된다. Oracle table space -system table space -user table spaces -.. 2022. 9. 12.
백준 11725 트리의 부모 찾기 import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; public class Main { static int parents []; static ArrayList list []; public static void main(String[] args) { try{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); //arrayList 한 원소를 배열로... 배열의 한 원소가 어레이리스트인듯 list =new ArrayList [n+1]; for(int i=0;i 2021. 8. 26.
백준 1697 숨바꼭질 import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); //수빈의 위치 int k=sc.nextInt(); //동생의 위치 boolean visited []=new boolean [100001]; Arrays.fill(visited, false); visited[n]=true; //걸음수를 넣는 배열 int status[]=new int [100001]; status[0]=n; Queue q =new Li.. 2021. 8. 25.
백준 7569 토마토2 import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; public class Main { public static int nx []= {1,-1,0,0,0,0}; public static int ny []= {0,0,-1,1,0,0}; public static int nz []= {0,0,0,0,-1,1}; public static void main(String[] args) { Scanner sc=new Scanner(System.in); int m=sc.nextInt(); int n=sc.nextInt(); int h=sc.nextInt(); int[][][] arr = new int[m][n][h]; .. 2021. 8. 24.
백준 7576 토마토 import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; public class Main { public static int nx []= {1,-1,0,0}; public static int ny []= {0,0,-1,1}; public static void main(String[] args) { Scanner sc=new Scanner(System.in); int m=sc.nextInt(); int n=sc.nextInt(); int arr [][]=new int [m+2][n+2]; int arr2 [][]=new int [m+2][n+2]; boolean check [][]=new boolean[m+2][.. 2021. 8. 23.
반응형